ruby-jq 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +24 -0
- data/README.md +2 -5
- data/ext/jq_core.c +1 -2
- data/lib/jq/version.rb +1 -1
- data/ruby-jq.gemspec +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6544eb5b2c0024c37edcba02cd6c3e69ea326467
|
|
4
|
+
data.tar.gz: 16b1b9ed8b673d6ad48932dc2adac2ce0a5b7b9b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 91bb8715bc912d1bc180f963ae9b73a6516ba7750c57ce4f1722a91114a7d0b99ce05d0672792fa6a712fed824ee79a5bbc9d9a9f252c712849445e0b8eff155
|
|
7
|
+
data.tar.gz: 634e4146175d8913561fbeeb6e52d6b376a645b465bddcd34d2906df9d819ff7e0f4fde49f2e458d15f8252615129d786859b62c0ae0c42e2cc5060872aa0c58
|
data/.travis.yml
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
language: ruby
|
|
2
|
+
rvm:
|
|
3
|
+
- 2.0.0
|
|
4
|
+
before_script:
|
|
5
|
+
- wget http://ftp.gnu.org/gnu/bison/bison-3.0.2.tar.gz
|
|
6
|
+
- tar xf bison-3.0.2.tar.gz
|
|
7
|
+
- cd bison-3.0.2
|
|
8
|
+
- ./configure
|
|
9
|
+
- make
|
|
10
|
+
- sudo make install
|
|
11
|
+
- cd ..
|
|
12
|
+
- sudo apt-get install flex libonig2 libonig-dev
|
|
13
|
+
- git clone https://github.com/stedolan/jq.git
|
|
14
|
+
- cd jq
|
|
15
|
+
- autoreconf -i
|
|
16
|
+
- ./configure --enable-shared
|
|
17
|
+
- BUNDLE_GEMFILE="$PWD/docs/Gemfile" bundle install
|
|
18
|
+
- BUNDLE_GEMFILE="$PWD/docs/Gemfile" bundle exec make
|
|
19
|
+
- sudo make install
|
|
20
|
+
- sudo ldconfig
|
|
21
|
+
- cd ..
|
|
22
|
+
script:
|
|
23
|
+
- bundle install
|
|
24
|
+
- bundle exec rake
|
data/README.md
CHANGED
|
@@ -4,8 +4,8 @@ Ruby bindings for jq.
|
|
|
4
4
|
|
|
5
5
|
see [http://stedolan.github.io/jq/](http://stedolan.github.io/jq/).
|
|
6
6
|
|
|
7
|
-
[](http://badge.fury.io/rb/ruby-jq)
|
|
8
|
+
[](https://travis-ci.org/winebarrel/ruby-jq)
|
|
9
9
|
|
|
10
10
|
## Installation
|
|
11
11
|
|
|
@@ -21,9 +21,6 @@ sudo make install
|
|
|
21
21
|
sudo ldconfig
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
(You can download it from [here](https://bitbucket.org/winebarrel/ruby-jq/downloads/libjq-osx-10.8.5-2003a0440f3b75f7cdc216e8254a1eb2e466843c.tar.gz) if you're using OSX)
|
|
25
|
-
|
|
26
|
-
|
|
27
24
|
Add this line to your application's Gemfile:
|
|
28
25
|
|
|
29
26
|
gem 'ruby-jq'
|
data/ext/jq_core.c
CHANGED
|
@@ -99,8 +99,7 @@ static VALUE rb_jq_update(VALUE self, VALUE buf, VALUE v_is_partial) {
|
|
|
99
99
|
Check_Type(buf, T_STRING);
|
|
100
100
|
|
|
101
101
|
if (!p->parser) {
|
|
102
|
-
|
|
103
|
-
p->parser = jv_parser_new(parser_flags);
|
|
102
|
+
p->parser = jv_parser_new(0);
|
|
104
103
|
}
|
|
105
104
|
|
|
106
105
|
jv_parser_set_buf(p->parser, RSTRING_PTR(buf), RSTRING_LEN(buf), is_partial);
|
data/lib/jq/version.rb
CHANGED
data/ruby-jq.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.email = "sgwr_dts@yahoo.co.jp"
|
|
11
11
|
spec.description = "Ruby bindings for jq"
|
|
12
12
|
spec.summary = "Ruby bindings for jq"
|
|
13
|
-
spec.homepage = "https://
|
|
13
|
+
spec.homepage = "https://github.com/winebarrel/ruby-jq"
|
|
14
14
|
spec.license = "MIT"
|
|
15
15
|
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-jq
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- winebarrel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2014-11-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|
|
@@ -88,6 +88,7 @@ extensions:
|
|
|
88
88
|
extra_rdoc_files: []
|
|
89
89
|
files:
|
|
90
90
|
- .gitignore
|
|
91
|
+
- .travis.yml
|
|
91
92
|
- Gemfile
|
|
92
93
|
- LICENSE.txt
|
|
93
94
|
- README.md
|
|
@@ -102,7 +103,7 @@ files:
|
|
|
102
103
|
- ruby-jq.gemspec
|
|
103
104
|
- spec/jq_spec.rb
|
|
104
105
|
- spec/spec_helper.rb
|
|
105
|
-
homepage: https://
|
|
106
|
+
homepage: https://github.com/winebarrel/ruby-jq
|
|
106
107
|
licenses:
|
|
107
108
|
- MIT
|
|
108
109
|
metadata: {}
|