grape-gen 0.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.
Files changed (62) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +16 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +31 -0
  6. data/Rakefile +2 -0
  7. data/bin/grape-gen +5 -0
  8. data/grape-scaffold.gemspec +24 -0
  9. data/lib/grape/generate/version.rb +5 -0
  10. data/lib/grape/generate.rb +91 -0
  11. data/template/Gemfile.tt +95 -0
  12. data/template/Guardfile +20 -0
  13. data/template/abilities/api_ability.rb +15 -0
  14. data/template/api/api_app.rb +85 -0
  15. data/template/api/mounts/auth.rb.tt +42 -0
  16. data/template/api/mounts/profile.rb.tt +24 -0
  17. data/template/config/application.yml.tt +33 -0
  18. data/template/config/boot.rb.tt +85 -0
  19. data/template/config/boot_faye.rb +22 -0
  20. data/template/config/boot_sidekiq.rb.tt +33 -0
  21. data/template/config/boot_spec.rb.tt +85 -0
  22. data/template/config/database.rb.tt +6 -0
  23. data/template/config/database.yml.tt +21 -0
  24. data/template/config/initializers/carrierwave.rb +3 -0
  25. data/template/config/initializers/core_ext.rb +14 -0
  26. data/template/config/initializers/em-patches/carrierwave.rb +13 -0
  27. data/template/config/initializers/em-patches/faye.rb +4 -0
  28. data/template/config/initializers/em-patches/lazy_evaluated_pool.rb +35 -0
  29. data/template/config/initializers/em-patches/mandrill.rb +45 -0
  30. data/template/config/initializers/em-patches/redis.rb +13 -0
  31. data/template/config/initializers/em-patches/redis_lazy_evaluated_pool.rb +19 -0
  32. data/template/config/initializers/em-patches/sidekiq.rb +46 -0
  33. data/template/config/initializers/em-patches/tire.rb +8 -0
  34. data/template/config/initializers/faye.rb +3 -0
  35. data/template/config/initializers/grape.rb +11 -0
  36. data/template/config/initializers/logging.rb +38 -0
  37. data/template/config/initializers/mandrill.rb +1 -0
  38. data/template/config/initializers/patches/redis_namespace.rb +96 -0
  39. data/template/config/initializers/sidekiq.rb +15 -0
  40. data/template/config/initializers/tire.rb +6 -0
  41. data/template/config/initializers/workflow.rb +31 -0
  42. data/template/config/logging.yml.tt +39 -0
  43. data/template/config/settings.rb +24 -0
  44. data/template/config/sidekiq.yml.tt +22 -0
  45. data/template/config.ru.tt +8 -0
  46. data/template/faye.ru +55 -0
  47. data/template/jobs/pong_time.rb +11 -0
  48. data/template/lib/faye_auth_extension.rb +61 -0
  49. data/template/lib/faye_publisher.rb +63 -0
  50. data/template/lib/mongoid/tire_plugin.rb +17 -0
  51. data/template/lib/warden/token_strategy.rb +18 -0
  52. data/template/mailers/registration_mailer.rb +17 -0
  53. data/template/models/user.rb.tt +75 -0
  54. data/template/public/faye.html +36 -0
  55. data/template/search_indexes/search_index.rb +60 -0
  56. data/template/search_indexes/user_index.rb +20 -0
  57. data/template/spec/api/mounts/auth_spec.rb.tt +37 -0
  58. data/template/spec/factories/user.rb +8 -0
  59. data/template/spec/spec_helper.rb.tt +132 -0
  60. data/template/uploaders/avatar_uploader.rb +23 -0
  61. data/template/views/v1/user/profile.json.jbuilder.tt +4 -0
  62. metadata +147 -0
metadata ADDED
@@ -0,0 +1,147 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: grape-gen
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - AMar4enko
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-01-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: thor
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.19.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.19.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.7'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.7'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ description:
56
+ email:
57
+ - amar4enko@gmail.com
58
+ executables:
59
+ - grape-gen
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".gitignore"
64
+ - Gemfile
65
+ - LICENSE.txt
66
+ - README.md
67
+ - Rakefile
68
+ - bin/grape-gen
69
+ - grape-scaffold.gemspec
70
+ - lib/grape/generate.rb
71
+ - lib/grape/generate/version.rb
72
+ - template/Gemfile.tt
73
+ - template/Guardfile
74
+ - template/abilities/api_ability.rb
75
+ - template/api/api_app.rb
76
+ - template/api/mounts/auth.rb.tt
77
+ - template/api/mounts/profile.rb.tt
78
+ - template/config.ru.tt
79
+ - template/config/application.yml.tt
80
+ - template/config/boot.rb.tt
81
+ - template/config/boot_faye.rb
82
+ - template/config/boot_sidekiq.rb.tt
83
+ - template/config/boot_spec.rb.tt
84
+ - template/config/database.rb.tt
85
+ - template/config/database.yml.tt
86
+ - template/config/initializers/carrierwave.rb
87
+ - template/config/initializers/core_ext.rb
88
+ - template/config/initializers/em-patches/carrierwave.rb
89
+ - template/config/initializers/em-patches/faye.rb
90
+ - template/config/initializers/em-patches/lazy_evaluated_pool.rb
91
+ - template/config/initializers/em-patches/mandrill.rb
92
+ - template/config/initializers/em-patches/redis.rb
93
+ - template/config/initializers/em-patches/redis_lazy_evaluated_pool.rb
94
+ - template/config/initializers/em-patches/sidekiq.rb
95
+ - template/config/initializers/em-patches/tire.rb
96
+ - template/config/initializers/faye.rb
97
+ - template/config/initializers/grape.rb
98
+ - template/config/initializers/logging.rb
99
+ - template/config/initializers/mandrill.rb
100
+ - template/config/initializers/patches/redis_namespace.rb
101
+ - template/config/initializers/sidekiq.rb
102
+ - template/config/initializers/tire.rb
103
+ - template/config/initializers/workflow.rb
104
+ - template/config/logging.yml.tt
105
+ - template/config/settings.rb
106
+ - template/config/sidekiq.yml.tt
107
+ - template/faye.ru
108
+ - template/jobs/pong_time.rb
109
+ - template/lib/faye_auth_extension.rb
110
+ - template/lib/faye_publisher.rb
111
+ - template/lib/mongoid/tire_plugin.rb
112
+ - template/lib/warden/token_strategy.rb
113
+ - template/mailers/registration_mailer.rb
114
+ - template/models/user.rb.tt
115
+ - template/public/faye.html
116
+ - template/search_indexes/search_index.rb
117
+ - template/search_indexes/user_index.rb
118
+ - template/spec/api/mounts/auth_spec.rb.tt
119
+ - template/spec/factories/user.rb
120
+ - template/spec/spec_helper.rb.tt
121
+ - template/uploaders/avatar_uploader.rb
122
+ - template/views/v1/user/profile.json.jbuilder.tt
123
+ homepage: https://github.com/AlexYankee/grape-gen
124
+ licenses:
125
+ - MIT
126
+ metadata: {}
127
+ post_install_message:
128
+ rdoc_options: []
129
+ require_paths:
130
+ - lib
131
+ required_ruby_version: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - ">="
134
+ - !ruby/object:Gem::Version
135
+ version: '0'
136
+ required_rubygems_version: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
141
+ requirements: []
142
+ rubyforge_project:
143
+ rubygems_version: 2.4.4
144
+ signing_key:
145
+ specification_version: 4
146
+ summary: Grape-powered rack application generator with batteries included
147
+ test_files: []