Skip to content

Commit 01cdaff

Browse files
committed
Requiring only json_pure now instead of C-extension json. Will use latter if available.
1 parent 7a1dbc0 commit 01cdaff

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ PATH
33
specs:
44
github (0.6.1)
55
highline (~> 1.5.1)
6-
json (~> 1.4.6)
6+
json_pure (~> 1.5.1)
77
launchy (~> 0.3.7)
88
text-format (= 1.0.0)
99
text-hyphen (= 1.0.0)
@@ -26,7 +26,7 @@ GEM
2626
configuration (1.2.0)
2727
highline (1.5.2)
2828
i18n (0.5.0)
29-
json (1.4.6)
29+
json_pure (1.5.1)
3030
launchy (0.3.7)
3131
configuration (>= 0.0.5)
3232
rake (>= 0.8.1)

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ Run it:
1414
$ github <command> <args>
1515
$ gh <command> <args>
1616

17+
## Requirements
18+
19+
Only installs pure JSON gem `json_pure` by default. If you are able to install the C-extension `json` gem, it will use that instead.
20+
21+
Try:
22+
23+
gem install json github
24+
25+
1726
## Pulling Upstream Changes
1827

1928
Let's say you just forked `github-gem` on GitHub from defunkt.

github.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
2222
s.add_dependency "text-hyphen", "1.0.0"
2323
s.add_dependency "text-format", "1.0.0"
2424
s.add_dependency "highline", "~> 1.5.1"
25-
s.add_dependency "json", "~> 1.4.6"
25+
s.add_dependency "json_pure", "~> 1.5.1"
2626
s.add_dependency "launchy", "~> 0.3.7"
2727

2828
s.add_development_dependency "rake"

0 commit comments

Comments
 (0)