culpa-coliseum 2.0.0 → 2.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f13eb21cdd7d7eabeca4aa7bd91ebf203654dc62
4
- data.tar.gz: 306cbe6a3491380b628dd7a50f52d9c0c9250934
3
+ metadata.gz: 518197b1560643b6b1538ebf48c4c37455d62fed
4
+ data.tar.gz: 86623d48b875cfed60436b43149e416841e99b25
5
5
  SHA512:
6
- metadata.gz: dfa82862cf1ed2472974d4622b8d158f9a772e7e3a2cdee1bfab67144644c0ed3b783aa02b834d342f164990544ff7b8b3a9ca1cd00034783643cafafc5d5a34
7
- data.tar.gz: 7f3d68c1b942005e89738bbfe1832904902f815834fdcdb32b7486e514900b74758eeb47e25179dd102920e7f61e835db6b94a895363209949939ae79715e95a
6
+ metadata.gz: 7b01bc73b12f338a15acea2097d2e78c88785a61b161f2e5bf340109bd7e9c442b9607051d6e5a4d7a617d8ca7bda1d9a00aa593b927d320344ef22c18e882a0
7
+ data.tar.gz: 0a4b67a17c7c4c42cc893cb601fe4f674d2055d9b4c221327781fa676796a12980f119e68d9813469be471ce4c971a7ba8b581d269b2d9c7c2ad44e073a8e92f
@@ -13,6 +13,13 @@ if Culpa
13
13
  headers: { 'Content-Type' => 'application/json' }.merge(coliseum.culpa_headers),
14
14
  object: coliseum.dsl_attributes
15
15
  end
16
+
17
+ # Adding a new generator to culpa binary
18
+ add_culpa_generator 'coliseum', 'Creates a new coliseum file' do |args|
19
+ FileUtils.mkdir_p './coliseums' unless Dir.exist? './coliseums'
20
+ coliseum_template = File.join(File.dirname(__FILE__), '../templates/culpa/coliseum.rb')
21
+ FileUtils.cp coliseum_template, "./coliseums/#{args[2]}.rb"
22
+ end
16
23
  else
17
24
  raise StandardError.new('Culpa is not loaded, can\'t register Coliseum in nothing...')
18
25
  end
@@ -0,0 +1,13 @@
1
+ # Express your JSON skeleton here. You can access the envelope using
2
+ # the `e` method.
3
+
4
+ # For instance :
5
+ # array! people: e.all_items do |person|
6
+ # last_name person.last_name
7
+ # first_name person.first_name
8
+ # end
9
+ # will output something like :
10
+ # { people: [ { last_name: ..., first_name: ... }, ... ] }
11
+
12
+ # Find more information of the github page of coliseum :
13
+ # https://github.com/CulpaFramework/culpa-coliseum
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: culpa-coliseum
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jérémy SEBAN
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-26 00:00:00.000000000 Z
11
+ date: 2016-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: culpa
@@ -33,6 +33,7 @@ files:
33
33
  - lib/culpa-coliseum.rb
34
34
  - lib/culpa-coliseum/coliseum.rb
35
35
  - lib/culpa-coliseum/coliseum_dsl.rb
36
+ - templates/culpa/coliseum.rb
36
37
  homepage: http://culpaframework.org/
37
38
  licenses:
38
39
  - MIT
@@ -53,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
54
  version: '0'
54
55
  requirements: []
55
56
  rubyforge_project:
56
- rubygems_version: 2.5.2
57
+ rubygems_version: 2.4.5
57
58
  signing_key:
58
59
  specification_version: 4
59
60
  summary: 'Coliseum : the Culpa JSON DSL'