noodall 0.0.1 → 0.0.3

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 (66) hide show
  1. data/bin/noodall +8 -0
  2. data/lib/noodall/generator.rb +40 -0
  3. data/lib/noodall/templates/Gemfile +23 -0
  4. data/lib/noodall/templates/README +256 -0
  5. data/lib/noodall/templates/Rakefile +7 -0
  6. data/lib/noodall/templates/app/controllers/application_controller.rb +3 -0
  7. data/lib/noodall/templates/app/helpers/application_helper.rb +58 -0
  8. data/lib/noodall/templates/app/mailers/.empty_directory +0 -0
  9. data/lib/noodall/templates/app/models/.empty_directory +0 -0
  10. data/lib/noodall/templates/app/views/layouts/application.html.erb.tt +19 -0
  11. data/lib/noodall/templates/config/application.rb +49 -0
  12. data/lib/noodall/templates/config/boot.rb +13 -0
  13. data/lib/noodall/templates/config/cucumber.yml +8 -0
  14. data/lib/noodall/templates/config/database.yml +11 -0
  15. data/lib/noodall/templates/config/environment.rb +5 -0
  16. data/lib/noodall/templates/config/environments/development.rb.tt +27 -0
  17. data/lib/noodall/templates/config/environments/production.rb.tt +50 -0
  18. data/lib/noodall/templates/config/environments/staging.rb.tt +50 -0
  19. data/lib/noodall/templates/config/environments/test.rb.tt +36 -0
  20. data/lib/noodall/templates/config/initializers/backtrace_silencers.rb +7 -0
  21. data/lib/noodall/templates/config/initializers/devise.rb.tt +143 -0
  22. data/lib/noodall/templates/config/initializers/inflections.rb +10 -0
  23. data/lib/noodall/templates/config/initializers/mime_types.rb +5 -0
  24. data/lib/noodall/templates/config/initializers/mongo_mapper.rb +11 -0
  25. data/lib/noodall/templates/config/initializers/noodall.rb +3 -0
  26. data/lib/noodall/templates/config/initializers/secret_token.rb.tt +7 -0
  27. data/lib/noodall/templates/config/initializers/session_store.rb.tt +8 -0
  28. data/lib/noodall/templates/config/locales/devise.en.yml +39 -0
  29. data/lib/noodall/templates/config/locales/en.yml +5 -0
  30. data/lib/noodall/templates/config/routes.rb +9 -0
  31. data/lib/noodall/templates/config.ru +4 -0
  32. data/lib/noodall/templates/db/seeds.rb +10 -0
  33. data/lib/noodall/templates/doc/README_FOR_APP +2 -0
  34. data/lib/noodall/templates/features/component_slots.feature +15 -0
  35. data/lib/noodall/templates/features/content_templates.feature +22 -0
  36. data/lib/noodall/templates/features/step_definitions/cms_node_steps.rb +84 -0
  37. data/lib/noodall/templates/features/step_definitions/component_steps.rb +46 -0
  38. data/lib/noodall/templates/features/step_definitions/sign_in_steps.rb +48 -0
  39. data/lib/noodall/templates/features/step_definitions/web_steps.rb +219 -0
  40. data/lib/noodall/templates/features/support/env.rb +53 -0
  41. data/lib/noodall/templates/features/support/home_page.rb +4 -0
  42. data/lib/noodall/templates/features/support/paths.rb +35 -0
  43. data/lib/noodall/templates/gitignore +4 -0
  44. data/lib/noodall/templates/public/404.html +26 -0
  45. data/lib/noodall/templates/public/422.html +26 -0
  46. data/lib/noodall/templates/public/500.html +26 -0
  47. data/lib/noodall/templates/public/favicon.ico +0 -0
  48. data/lib/noodall/templates/public/images/rails.png +0 -0
  49. data/lib/noodall/templates/public/index.html +239 -0
  50. data/lib/noodall/templates/public/javascripts/application.js +2 -0
  51. data/lib/noodall/templates/public/javascripts/controls.js +965 -0
  52. data/lib/noodall/templates/public/javascripts/dragdrop.js +974 -0
  53. data/lib/noodall/templates/public/javascripts/effects.js +1123 -0
  54. data/lib/noodall/templates/public/javascripts/prototype.js +6001 -0
  55. data/lib/noodall/templates/public/robots.txt +5 -0
  56. data/lib/noodall/templates/public/stylesheets/.empty_directory +0 -0
  57. data/lib/noodall/templates/script/cucumber +10 -0
  58. data/lib/noodall/templates/script/rails +5 -0
  59. data/lib/noodall/templates/spec/factories/asset.rb +6 -0
  60. data/lib/noodall/templates/spec/factories/home.rb +5 -0
  61. data/lib/noodall/templates/spec/factories/user.rb +15 -0
  62. data/lib/noodall/templates/spec/files/beef.png +0 -0
  63. data/lib/noodall/templates/spec/files/test.pdf +0 -0
  64. data/lib/noodall/version.rb +1 -1
  65. data/noodall.gemspec +4 -3
  66. metadata +91 -12
@@ -0,0 +1,5 @@
1
+ # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-Agent: *
5
+ # Disallow: /
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ vendored_cucumber_bin = Dir["#{File.dirname(__FILE__)}/../vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
4
+ if vendored_cucumber_bin
5
+ load File.expand_path(vendored_cucumber_bin)
6
+ else
7
+ require 'rubygems' unless ENV['NO_RUBYGEMS']
8
+ require 'cucumber'
9
+ load Cucumber::BINARY
10
+ end
@@ -0,0 +1,5 @@
1
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
2
+
3
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
4
+ require File.expand_path('../../config/boot', __FILE__)
5
+ require 'rails/commands'
@@ -0,0 +1,6 @@
1
+ Factory.define :asset do |asset|
2
+ asset.tags { Faker::Lorem.words(4) }
3
+ asset.title { "Image asset" }
4
+ asset.description { "The asset description" }
5
+ asset.file {File.new(File.expand_path("../../files/beef.png", __FILE__))}
6
+ end
@@ -0,0 +1,5 @@
1
+ Factory.define :home do |home|
2
+ home.title { Faker::Lorem.words(3).join(' ') }
3
+ home.body { Faker::Lorem.paragraphs(6) }
4
+ home.published_at { Time.now }
5
+ end
@@ -0,0 +1,15 @@
1
+ Factory.define :user do |user|
2
+ user.email { |u| Faker::Internet.email(u.name) }
3
+ user.name { Faker::Name.name }
4
+ user.password { "password" }
5
+ user.password_confirmation { "password" }
6
+ end
7
+
8
+ Factory.define :website_editor, :parent => :user do |user|
9
+ user.groups [ "editor" ]
10
+ end
11
+
12
+ Factory.define :website_administrator, :parent => :user do |user|
13
+ user.groups [ "admin" ]
14
+ end
15
+
@@ -1,3 +1,3 @@
1
1
  module Noodall
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.3"
3
3
  end
data/noodall.gemspec CHANGED
@@ -12,9 +12,10 @@ Gem::Specification.new do |s|
12
12
  s.description = "Noodall meta-gem that depends on the other components. UI and Core data objects."
13
13
 
14
14
  s.required_rubygems_version = ">= 1.3.6"
15
- s.add_dependency 'noodall-core', ">= 0"
16
- s.add_dependency 'noodall-ui', ">= 0"
17
- # s.rubyforge_project = "noodall"
15
+ s.add_dependency 'rails', "~> 3.0.1"
16
+ s.add_dependency 'noodall-core', ">= 0"
17
+ s.add_dependency 'noodall-ui', ">= 0"
18
+ # s.add_dependency 'noodall-devise', ">= 0"
18
19
 
19
20
  s.add_development_dependency "bundler", ">= 1.0.0"
20
21
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noodall
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors: []
13
13
 
@@ -15,13 +15,29 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-02 00:00:00 +00:00
18
+ date: 2010-12-08 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: noodall-core
22
+ name: rails
23
23
  prerelease: false
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ hash: 5
30
+ segments:
31
+ - 3
32
+ - 0
33
+ - 1
34
+ version: 3.0.1
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: noodall-core
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
25
41
  none: false
26
42
  requirements:
27
43
  - - ">="
@@ -31,11 +47,11 @@ dependencies:
31
47
  - 0
32
48
  version: "0"
33
49
  type: :runtime
34
- version_requirements: *id001
50
+ version_requirements: *id002
35
51
  - !ruby/object:Gem::Dependency
36
52
  name: noodall-ui
37
53
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
54
+ requirement: &id003 !ruby/object:Gem::Requirement
39
55
  none: false
40
56
  requirements:
41
57
  - - ">="
@@ -45,11 +61,11 @@ dependencies:
45
61
  - 0
46
62
  version: "0"
47
63
  type: :runtime
48
- version_requirements: *id002
64
+ version_requirements: *id003
49
65
  - !ruby/object:Gem::Dependency
50
66
  name: bundler
51
67
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
68
+ requirement: &id004 !ruby/object:Gem::Requirement
53
69
  none: false
54
70
  requirements:
55
71
  - - ">="
@@ -61,12 +77,12 @@ dependencies:
61
77
  - 0
62
78
  version: 1.0.0
63
79
  type: :development
64
- version_requirements: *id003
80
+ version_requirements: *id004
65
81
  description: Noodall meta-gem that depends on the other components. UI and Core data objects.
66
82
  email: []
67
83
 
68
- executables: []
69
-
84
+ executables:
85
+ - noodall
70
86
  extensions: []
71
87
 
72
88
  extra_rdoc_files: []
@@ -75,7 +91,70 @@ files:
75
91
  - .gitignore
76
92
  - Gemfile
77
93
  - Rakefile
94
+ - bin/noodall
78
95
  - lib/noodall.rb
96
+ - lib/noodall/generator.rb
97
+ - lib/noodall/templates/Gemfile
98
+ - lib/noodall/templates/README
99
+ - lib/noodall/templates/Rakefile
100
+ - lib/noodall/templates/app/controllers/application_controller.rb
101
+ - lib/noodall/templates/app/helpers/application_helper.rb
102
+ - lib/noodall/templates/app/mailers/.empty_directory
103
+ - lib/noodall/templates/app/models/.empty_directory
104
+ - lib/noodall/templates/app/views/layouts/application.html.erb.tt
105
+ - lib/noodall/templates/config.ru
106
+ - lib/noodall/templates/config/application.rb
107
+ - lib/noodall/templates/config/boot.rb
108
+ - lib/noodall/templates/config/cucumber.yml
109
+ - lib/noodall/templates/config/database.yml
110
+ - lib/noodall/templates/config/environment.rb
111
+ - lib/noodall/templates/config/environments/development.rb.tt
112
+ - lib/noodall/templates/config/environments/production.rb.tt
113
+ - lib/noodall/templates/config/environments/staging.rb.tt
114
+ - lib/noodall/templates/config/environments/test.rb.tt
115
+ - lib/noodall/templates/config/initializers/backtrace_silencers.rb
116
+ - lib/noodall/templates/config/initializers/devise.rb.tt
117
+ - lib/noodall/templates/config/initializers/inflections.rb
118
+ - lib/noodall/templates/config/initializers/mime_types.rb
119
+ - lib/noodall/templates/config/initializers/mongo_mapper.rb
120
+ - lib/noodall/templates/config/initializers/noodall.rb
121
+ - lib/noodall/templates/config/initializers/secret_token.rb.tt
122
+ - lib/noodall/templates/config/initializers/session_store.rb.tt
123
+ - lib/noodall/templates/config/locales/devise.en.yml
124
+ - lib/noodall/templates/config/locales/en.yml
125
+ - lib/noodall/templates/config/routes.rb
126
+ - lib/noodall/templates/db/seeds.rb
127
+ - lib/noodall/templates/doc/README_FOR_APP
128
+ - lib/noodall/templates/features/component_slots.feature
129
+ - lib/noodall/templates/features/content_templates.feature
130
+ - lib/noodall/templates/features/step_definitions/cms_node_steps.rb
131
+ - lib/noodall/templates/features/step_definitions/component_steps.rb
132
+ - lib/noodall/templates/features/step_definitions/sign_in_steps.rb
133
+ - lib/noodall/templates/features/step_definitions/web_steps.rb
134
+ - lib/noodall/templates/features/support/env.rb
135
+ - lib/noodall/templates/features/support/home_page.rb
136
+ - lib/noodall/templates/features/support/paths.rb
137
+ - lib/noodall/templates/gitignore
138
+ - lib/noodall/templates/public/404.html
139
+ - lib/noodall/templates/public/422.html
140
+ - lib/noodall/templates/public/500.html
141
+ - lib/noodall/templates/public/favicon.ico
142
+ - lib/noodall/templates/public/images/rails.png
143
+ - lib/noodall/templates/public/index.html
144
+ - lib/noodall/templates/public/javascripts/application.js
145
+ - lib/noodall/templates/public/javascripts/controls.js
146
+ - lib/noodall/templates/public/javascripts/dragdrop.js
147
+ - lib/noodall/templates/public/javascripts/effects.js
148
+ - lib/noodall/templates/public/javascripts/prototype.js
149
+ - lib/noodall/templates/public/robots.txt
150
+ - lib/noodall/templates/public/stylesheets/.empty_directory
151
+ - lib/noodall/templates/script/cucumber
152
+ - lib/noodall/templates/script/rails
153
+ - lib/noodall/templates/spec/factories/asset.rb
154
+ - lib/noodall/templates/spec/factories/home.rb
155
+ - lib/noodall/templates/spec/factories/user.rb
156
+ - lib/noodall/templates/spec/files/beef.png
157
+ - lib/noodall/templates/spec/files/test.pdf
79
158
  - lib/noodall/version.rb
80
159
  - noodall.gemspec
81
160
  has_rdoc: true