fixed new json recipe
-{% set name = "jsonapi.rb" %}
-{% set version = "1.5.3" %}
+{% set name = "json" %}
+{% set version = "2.2.0" %}
package:
name: rb-{{ name|lower }}
@@ -7,17 +7,18 @@ package:
source:
url: https://rubygems.org/downloads/{{ name }}-{{ version }}.gem
- sha256: ea5b861b5ba9f5ed654899f1a820268846a3839c3c5161e1fabf2fe5af1ad8c8
+ sha256: 9dd1437156773f72c096058ec837faac1b00077121a3fd574e68f895ea3aa96b
build:
noarch: generic
number: 0
script:
- gem install -N -l -V --norc --ignore-dependencies {{ name }}-{{ version }}.gem
- - gem unpack {{ name }}-{{ version }}.gem
+ - make -C {{ PREFIX }}/lib/ruby/gems/{{ ruby }}.0/gems/{{ name }}-{{ version }}/ext clean
skip: {{ win }}
requirements:
+ - {{ compiler('c') }}
host:
- ruby
run:
@@ -26,16 +27,16 @@ requirements:
test:
commands:
- ruby -r {{ name }} -e 'exit 0'
- - jsonapi.rb --help
+ - json --help
about:
home: https://rubygems.org/gems/{{ name }}
- license: MIT
- license_family: MIT
- license_file: {{ name }}-{{ version }}/LICENSE.txt
- summary: JSON:API serialization, error handling, filtering and pagination.
+ license: RUBY
+ license_family: RUBY
+ license_file: LICENSE
+ summary: This is a JSON implementation as a Ruby extension in C.
doc_url: https://www.rubydoc.info/gems/{{ name }}
- dev_url: https://github.com/stas/jsonapi.rb
+ dev_url: http://flori.github.io/json/
extra:
recipe-maintainers:
