pliny 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +5 -13
  2. data/README.md +1 -2
  3. data/lib/pliny/commands/creator.rb +3 -3
  4. data/lib/pliny/commands/generator/base.rb +6 -2
  5. data/lib/pliny/commands/generator/endpoint.rb +3 -3
  6. data/lib/pliny/commands/generator/mediator.rb +2 -2
  7. data/lib/pliny/commands/generator/migration.rb +1 -1
  8. data/lib/pliny/commands/generator/model.rb +3 -3
  9. data/lib/pliny/commands/generator/serializer.rb +2 -2
  10. data/lib/pliny/config_helpers.rb +1 -1
  11. data/lib/pliny/tasks/db.rake +23 -4
  12. data/lib/pliny/templates/endpoint.erb +4 -4
  13. data/lib/pliny/templates/endpoint_acceptance_test.erb +5 -5
  14. data/lib/pliny/templates/endpoint_test.erb +1 -1
  15. data/lib/pliny/version.rb +1 -1
  16. data/{template → lib/template}/.env.sample +0 -0
  17. data/{template → lib/template}/.env.test +0 -0
  18. data/{template → lib/template}/.gitignore +0 -0
  19. data/{template → lib/template}/.rspec +0 -0
  20. data/lib/template/.ruby-version +1 -0
  21. data/{template → lib/template}/Gemfile +7 -10
  22. data/{template → lib/template}/LICENSE +0 -0
  23. data/{template → lib/template}/Procfile +0 -0
  24. data/{template → lib/template}/README.md +0 -0
  25. data/lib/template/Rakefile +6 -0
  26. data/{template → lib/template}/bin/console +2 -10
  27. data/{template → lib/template}/bin/run +0 -0
  28. data/{template → lib/template}/bin/setup +1 -1
  29. data/{template → lib/template}/config.ru +0 -0
  30. data/{template → lib/template}/config/config.rb +1 -1
  31. data/{template → lib/template}/config/initializers/database.rb +0 -0
  32. data/{template → lib/template}/config/initializers/rollbar.rb +0 -0
  33. data/{template → lib/template}/config/puma.rb +0 -0
  34. data/{template → lib/template}/db/schema.sql +0 -0
  35. data/{template → lib/template}/db/seeds.rb +0 -0
  36. data/{template → lib/template}/docs/schema/meta.json +0 -0
  37. data/{template → lib/template}/docs/schema/schemata/.gitkeep +0 -0
  38. data/{template → lib/template}/lib/application.rb +0 -0
  39. data/{template → lib/template}/lib/endpoints/base.rb +0 -0
  40. data/{template → lib/template}/lib/endpoints/root.rb +0 -0
  41. data/{template → lib/template}/lib/initializer.rb +0 -0
  42. data/{template → lib/template}/lib/mediators/base.rb +0 -0
  43. data/{template → lib/template}/lib/routes.rb +0 -0
  44. data/{template → lib/template}/lib/serializers/base.rb +0 -0
  45. data/lib/template/lib/tasks/spec.rake +10 -0
  46. data/{template → lib/template}/spec/spec_helper.rb +1 -0
  47. data/{template → lib/template}/spec/support/auto_define_rack_app.rb +0 -0
  48. data/{template → lib/template}/spec/support/log.rb +0 -0
  49. data/spec/commands/generator/endpoint_spec.rb +44 -2
  50. data/spec/integration_spec.rb +17 -7
  51. data/spec/spec_helper.rb +14 -1
  52. data/spec/support/config.rb +8 -0
  53. data/spec/support/endpoints.rb +8 -0
  54. metadata +134 -97
  55. data/template/.ruby-version +0 -1
  56. data/template/Gemfile.lock +0 -138
  57. data/template/Rakefile +0 -14
@@ -1 +0,0 @@
1
- 2.1.4
@@ -1,138 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- activesupport (4.1.6)
5
- i18n (~> 0.6, >= 0.6.9)
6
- json (~> 1.7, >= 1.7.7)
7
- minitest (~> 5.1)
8
- thread_safe (~> 0.1)
9
- tzinfo (~> 1.1)
10
- backports (3.6.0)
11
- byebug (2.7.0)
12
- columnize (~> 0.3)
13
- debugger-linecache (~> 1.2)
14
- celluloid (0.15.2)
15
- timers (~> 1.1.0)
16
- coderay (1.1.0)
17
- columnize (0.8.9)
18
- committee (0.4.13)
19
- multi_json (> 0.0)
20
- rack (> 0.0)
21
- database_cleaner (1.2.0)
22
- debugger-linecache (1.2.0)
23
- diff-lcs (1.2.5)
24
- dotenv (0.7.0)
25
- erubis (2.7.0)
26
- http_accept (0.1.6)
27
- i18n (0.6.11)
28
- json (1.8.1)
29
- json_schema (0.3.0)
30
- method_source (0.8.2)
31
- minitest (5.4.2)
32
- multi_json (1.10.1)
33
- oj (2.9.0)
34
- pg (0.17.1)
35
- pliny (0.4.0)
36
- activesupport (~> 4.1, >= 4.1.0)
37
- http_accept (~> 0.1, >= 0.1.5)
38
- multi_json (~> 1.9, >= 1.9.3)
39
- pg (~> 0.17, >= 0.17.1)
40
- prmd (~> 0.1, >= 0.1.1)
41
- sequel (~> 4.9, >= 4.9.0)
42
- sinatra (~> 1.4, >= 1.4.5)
43
- sinatra-router (~> 0.2, >= 0.2.3)
44
- thor (~> 0.19, >= 0.19.1)
45
- prmd (0.6.2)
46
- erubis (~> 2.7)
47
- json_schema (~> 0.1)
48
- pry (0.9.12.6)
49
- coderay (~> 1.0)
50
- method_source (~> 0.8)
51
- slop (~> 3.4)
52
- pry-byebug (1.3.2)
53
- byebug (~> 2.7)
54
- pry (~> 0.9.12)
55
- pry-doc (0.6.0)
56
- pry (~> 0.9)
57
- yard (~> 0.8)
58
- puma (2.8.2)
59
- rack (>= 1.1, < 2.0)
60
- rack (1.5.2)
61
- rack-protection (1.5.3)
62
- rack
63
- rack-ssl (1.4.1)
64
- rack
65
- rack-test (0.6.2)
66
- rack (>= 1.0)
67
- rake (10.3.1)
68
- rollbar (0.12.20)
69
- multi_json (~> 1.3)
70
- rspec (3.0.0)
71
- rspec-core (~> 3.0.0)
72
- rspec-expectations (~> 3.0.0)
73
- rspec-mocks (~> 3.0.0)
74
- rspec-core (3.0.1)
75
- rspec-support (~> 3.0.0)
76
- rspec-expectations (3.0.1)
77
- diff-lcs (>= 1.2.0, < 2.0)
78
- rspec-support (~> 3.0.0)
79
- rspec-mocks (3.0.1)
80
- rspec-support (~> 3.0.0)
81
- rspec-support (3.0.0)
82
- sequel (4.15.0)
83
- sequel-paranoid (0.4.3)
84
- sequel
85
- sequel_pg (1.6.9)
86
- pg (>= 0.8.0)
87
- sequel (>= 3.39.0)
88
- sinatra (1.4.5)
89
- rack (~> 1.4)
90
- rack-protection (~> 1.4)
91
- tilt (~> 1.3, >= 1.3.4)
92
- sinatra-contrib (1.4.2)
93
- backports (>= 2.0)
94
- multi_json
95
- rack-protection
96
- rack-test
97
- sinatra (~> 1.4.0)
98
- tilt (~> 1.3)
99
- sinatra-router (0.2.3)
100
- sinatra (~> 1.4)
101
- slop (3.5.0)
102
- sucker_punch (1.0.5)
103
- celluloid (~> 0.15.2)
104
- thor (0.19.1)
105
- thread_safe (0.3.4)
106
- tilt (1.4.1)
107
- timers (1.1.0)
108
- tzinfo (1.2.2)
109
- thread_safe (~> 0.1)
110
- yard (0.8.7.4)
111
-
112
- PLATFORMS
113
- ruby
114
-
115
- DEPENDENCIES
116
- committee
117
- database_cleaner
118
- dotenv
119
- multi_json
120
- oj
121
- pg
122
- pliny
123
- pry
124
- pry-byebug
125
- pry-doc
126
- puma
127
- rack-ssl
128
- rack-test
129
- rake
130
- rollbar
131
- rspec
132
- sequel
133
- sequel-paranoid
134
- sequel_pg
135
- sinatra
136
- sinatra-contrib
137
- sinatra-router
138
- sucker_punch
data/template/Rakefile DELETED
@@ -1,14 +0,0 @@
1
- require "pliny/tasks"
2
-
3
- # Add your rake tasks to lib/tasks!
4
- Dir["./lib/tasks/*.rake"].each { |task| load task }
5
-
6
- task :spec do
7
- require "rspec/core"
8
- code = RSpec::Core::Runner.run(
9
- ["./spec"],
10
- $stderr, $stdout)
11
- exit(code) unless code == 0
12
- end
13
-
14
- task :default => :spec