rails3_artifactor 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ begin
5
5
  gem.summary = %Q{Helpers for handling Rails 3 artifacts}
6
6
  gem.description = %Q{Helpers for handling Rails 3 artifacts in general, such as CRUD operations etc.}
7
7
  gem.email = "kmandrup@gmail.com"
8
- gem.homepage = "http://github.com/kristianmandrup/rails3_artifact_helper"
8
+ gem.homepage = "http://github.com/kristianmandrup/rails3_artifactor"
9
9
  gem.authors = ["Kristian Mandrup"]
10
10
  gem.add_development_dependency "rspec", ">= 2.0.0"
11
11
  gem.add_development_dependency "generator-spec", '>= 0.7.0'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
@@ -4,7 +4,7 @@ module Rails3::Assist
4
4
  base.extend ClassMethods
5
5
  base.class_eval do
6
6
  include Rails3::Assist::App
7
- include ::Thor::Actions
7
+ # include ::Thor::Actions
8
8
  end
9
9
  end
10
10
 
@@ -38,7 +38,7 @@ module Rails3::Assist::Artifact
38
38
  root_path = options[:root_path]
39
39
  views_path = options[:views_path]
40
40
  views_path ||= File.join(root_path, 'app/views') if root_path
41
- puts "views: #{views_path}"
41
+ # puts "views: #{views_path}"
42
42
  File.expand_path File.join(views_path || DIR.view_dir, folder.to_s, "#{action}.#{type}")
43
43
  end
44
44
 
@@ -1,129 +1,127 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rails3_artifactor}
8
- s.version = "0.3.1"
8
+ s.version = "0.3.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kristian Mandrup"]
12
- s.date = %q{2010-11-20}
12
+ s.date = %q{2010-12-18}
13
13
  s.description = %q{Helpers for handling Rails 3 artifacts in general, such as CRUD operations etc.}
14
14
  s.email = %q{kmandrup@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.markdown"
17
+ "README.markdown"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- ".gitignore",
22
- ".rspec",
23
- "DESIGN_NOTES.markdown",
24
- "LICENSE",
25
- "README.markdown",
26
- "Rakefile",
27
- "VERSION",
28
- "lib/rails3_artifactor.rb",
29
- "lib/rails3_artifactor/artifact.rb",
30
- "lib/rails3_artifactor/artifact/base.rb",
31
- "lib/rails3_artifactor/artifact/crud.rb",
32
- "lib/rails3_artifactor/artifact/crud/create.rb",
33
- "lib/rails3_artifactor/artifact/crud/delete.rb",
34
- "lib/rails3_artifactor/artifact/crud/read.rb",
35
- "lib/rails3_artifactor/artifact/crud/update.rb",
36
- "lib/rails3_artifactor/artifact/file_name/artifacts.rb",
37
- "lib/rails3_artifactor/artifact/file_name/migration.rb",
38
- "lib/rails3_artifactor/artifact/file_name/view.rb",
39
- "lib/rails3_artifactor/artifact/markers.rb",
40
- "lib/rails3_artifactor/artifact/migration.rb",
41
- "lib/rails3_artifactor/artifact/orm.rb",
42
- "lib/rails3_artifactor/artifact/orm/active_record.rb",
43
- "lib/rails3_artifactor/artifact/orm/data_mapper.rb",
44
- "lib/rails3_artifactor/artifact/orm/mongo_mapper.rb",
45
- "lib/rails3_artifactor/artifact/orm/mongoid.rb",
46
- "lib/rails3_artifactor/artifact/orm/none.rb",
47
- "lib/rails3_artifactor/artifact/view_artifact.rb",
48
- "lib/rails3_artifactor/base.rb",
49
- "lib/rails3_artifactor/base/crud.rb",
50
- "lib/rails3_artifactor/base/crud/create.rb",
51
- "lib/rails3_artifactor/base/crud/delete.rb",
52
- "lib/rails3_artifactor/base/crud/read.rb",
53
- "lib/rails3_artifactor/base/crud/update.rb",
54
- "lib/rails3_artifactor/base/file_name.rb",
55
- "lib/rails3_artifactor/macro.rb",
56
- "lib/rails3_artifactor/namespaces.rb",
57
- "lib/rails3_artifactor/rspec.rb",
58
- "lib/rails3_artifactor/rspec/configure.rb",
59
- "rails3_artifactor.gemspec",
60
- "spec/fixtures.rb",
61
- "spec/fixtures/app/views/account/edit.erb.html",
62
- "spec/fixtures/app/views/account/edit.html.erb",
63
- "spec/fixtures/app/views/layouts/application.erb.html",
64
- "spec/fixtures/app/views/layouts/application.html.erb",
65
- "spec/rails3_artifactor/artifact/base_spec.rb",
66
- "spec/rails3_artifactor/artifact/crud/controller_spec.rb",
67
- "spec/rails3_artifactor/artifact/crud/helper_spec.rb",
68
- "spec/rails3_artifactor/artifact/crud/mailer_spec.rb",
69
- "spec/rails3_artifactor/artifact/crud/migration_spec.rb",
70
- "spec/rails3_artifactor/artifact/crud/model_active_record_spec.rb",
71
- "spec/rails3_artifactor/artifact/crud/model_spec.rb",
72
- "spec/rails3_artifactor/artifact/crud/observer_spec.rb",
73
- "spec/rails3_artifactor/artifact/crud/permit_spec.rb",
74
- "spec/rails3_artifactor/artifact/crud/view_controller_action_spec.rb",
75
- "spec/rails3_artifactor/artifact/crud/view_file_spec.rb",
76
- "spec/rails3_artifactor/artifact/file_name/artifacts_spec.rb",
77
- "spec/rails3_artifactor/artifact/file_name/migration_spec.rb",
78
- "spec/rails3_artifactor/artifact/file_name/view_spec.rb",
79
- "spec/rails3_artifactor/artifact/markers_spec.rb",
80
- "spec/rails3_artifactor/artifact/migration_spec.rb",
81
- "spec/rails3_artifactor/artifact/orm/active_record_spec.rb",
82
- "spec/rails3_artifactor/artifact/orm/data_mapper_spec.rb",
83
- "spec/rails3_artifactor/artifact/orm/mongo_mapper_spec.rb",
84
- "spec/rails3_artifactor/artifact/orm/mongoid_spec.rb",
85
- "spec/rails3_artifactor/artifact/orm/none_spec.rb",
86
- "spec/rails3_artifactor/base/crud/create_spec.rb",
87
- "spec/rails3_artifactor/base/crud/delete_spec.rb",
88
- "spec/rails3_artifactor/base/crud/read_spec.rb",
89
- "spec/rails3_artifactor/base/crud/update_spec.rb",
90
- "spec/rails3_artifactor/base/file_name_spec.rb",
91
- "spec/spec_helper.rb"
21
+ ".rspec",
22
+ "DESIGN_NOTES.markdown",
23
+ "LICENSE",
24
+ "README.markdown",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "lib/rails3_artifactor.rb",
28
+ "lib/rails3_artifactor/artifact.rb",
29
+ "lib/rails3_artifactor/artifact/base.rb",
30
+ "lib/rails3_artifactor/artifact/crud.rb",
31
+ "lib/rails3_artifactor/artifact/crud/create.rb",
32
+ "lib/rails3_artifactor/artifact/crud/delete.rb",
33
+ "lib/rails3_artifactor/artifact/crud/read.rb",
34
+ "lib/rails3_artifactor/artifact/crud/update.rb",
35
+ "lib/rails3_artifactor/artifact/file_name/artifacts.rb",
36
+ "lib/rails3_artifactor/artifact/file_name/migration.rb",
37
+ "lib/rails3_artifactor/artifact/file_name/view.rb",
38
+ "lib/rails3_artifactor/artifact/markers.rb",
39
+ "lib/rails3_artifactor/artifact/migration.rb",
40
+ "lib/rails3_artifactor/artifact/orm.rb",
41
+ "lib/rails3_artifactor/artifact/orm/active_record.rb",
42
+ "lib/rails3_artifactor/artifact/orm/data_mapper.rb",
43
+ "lib/rails3_artifactor/artifact/orm/mongo_mapper.rb",
44
+ "lib/rails3_artifactor/artifact/orm/mongoid.rb",
45
+ "lib/rails3_artifactor/artifact/orm/none.rb",
46
+ "lib/rails3_artifactor/artifact/view_artifact.rb",
47
+ "lib/rails3_artifactor/base.rb",
48
+ "lib/rails3_artifactor/base/crud.rb",
49
+ "lib/rails3_artifactor/base/crud/create.rb",
50
+ "lib/rails3_artifactor/base/crud/delete.rb",
51
+ "lib/rails3_artifactor/base/crud/read.rb",
52
+ "lib/rails3_artifactor/base/crud/update.rb",
53
+ "lib/rails3_artifactor/base/file_name.rb",
54
+ "lib/rails3_artifactor/macro.rb",
55
+ "lib/rails3_artifactor/namespaces.rb",
56
+ "lib/rails3_artifactor/rspec.rb",
57
+ "lib/rails3_artifactor/rspec/configure.rb",
58
+ "rails3_artifactor.gemspec",
59
+ "spec/fixtures.rb",
60
+ "spec/fixtures/app/views/account/edit.erb.html",
61
+ "spec/fixtures/app/views/account/edit.html.erb",
62
+ "spec/fixtures/app/views/layouts/application.erb.html",
63
+ "spec/fixtures/app/views/layouts/application.html.erb",
64
+ "spec/rails3_artifactor/artifact/base_spec.rb",
65
+ "spec/rails3_artifactor/artifact/crud/controller_spec.rb",
66
+ "spec/rails3_artifactor/artifact/crud/helper_spec.rb",
67
+ "spec/rails3_artifactor/artifact/crud/mailer_spec.rb",
68
+ "spec/rails3_artifactor/artifact/crud/migration_spec.rb",
69
+ "spec/rails3_artifactor/artifact/crud/model_active_record_spec.rb",
70
+ "spec/rails3_artifactor/artifact/crud/model_spec.rb",
71
+ "spec/rails3_artifactor/artifact/crud/observer_spec.rb",
72
+ "spec/rails3_artifactor/artifact/crud/permit_spec.rb",
73
+ "spec/rails3_artifactor/artifact/crud/view_controller_action_spec.rb",
74
+ "spec/rails3_artifactor/artifact/crud/view_file_spec.rb",
75
+ "spec/rails3_artifactor/artifact/file_name/artifacts_spec.rb",
76
+ "spec/rails3_artifactor/artifact/file_name/migration_spec.rb",
77
+ "spec/rails3_artifactor/artifact/file_name/view_spec.rb",
78
+ "spec/rails3_artifactor/artifact/markers_spec.rb",
79
+ "spec/rails3_artifactor/artifact/migration_spec.rb",
80
+ "spec/rails3_artifactor/artifact/orm/active_record_spec.rb",
81
+ "spec/rails3_artifactor/artifact/orm/data_mapper_spec.rb",
82
+ "spec/rails3_artifactor/artifact/orm/mongo_mapper_spec.rb",
83
+ "spec/rails3_artifactor/artifact/orm/mongoid_spec.rb",
84
+ "spec/rails3_artifactor/artifact/orm/none_spec.rb",
85
+ "spec/rails3_artifactor/base/crud/create_spec.rb",
86
+ "spec/rails3_artifactor/base/crud/delete_spec.rb",
87
+ "spec/rails3_artifactor/base/crud/read_spec.rb",
88
+ "spec/rails3_artifactor/base/crud/update_spec.rb",
89
+ "spec/rails3_artifactor/base/file_name_spec.rb",
90
+ "spec/spec_helper.rb"
92
91
  ]
93
- s.homepage = %q{http://github.com/kristianmandrup/rails3_artifact_helper}
94
- s.rdoc_options = ["--charset=UTF-8"]
92
+ s.homepage = %q{http://github.com/kristianmandrup/rails3_artifactor}
95
93
  s.require_paths = ["lib"]
96
94
  s.rubygems_version = %q{1.3.7}
97
95
  s.summary = %q{Helpers for handling Rails 3 artifacts}
98
96
  s.test_files = [
99
97
  "spec/fixtures.rb",
100
- "spec/rails3_artifactor/artifact/base_spec.rb",
101
- "spec/rails3_artifactor/artifact/crud/controller_spec.rb",
102
- "spec/rails3_artifactor/artifact/crud/helper_spec.rb",
103
- "spec/rails3_artifactor/artifact/crud/mailer_spec.rb",
104
- "spec/rails3_artifactor/artifact/crud/migration_spec.rb",
105
- "spec/rails3_artifactor/artifact/crud/model_active_record_spec.rb",
106
- "spec/rails3_artifactor/artifact/crud/model_spec.rb",
107
- "spec/rails3_artifactor/artifact/crud/observer_spec.rb",
108
- "spec/rails3_artifactor/artifact/crud/permit_spec.rb",
109
- "spec/rails3_artifactor/artifact/crud/view_controller_action_spec.rb",
110
- "spec/rails3_artifactor/artifact/crud/view_file_spec.rb",
111
- "spec/rails3_artifactor/artifact/file_name/artifacts_spec.rb",
112
- "spec/rails3_artifactor/artifact/file_name/migration_spec.rb",
113
- "spec/rails3_artifactor/artifact/file_name/view_spec.rb",
114
- "spec/rails3_artifactor/artifact/markers_spec.rb",
115
- "spec/rails3_artifactor/artifact/migration_spec.rb",
116
- "spec/rails3_artifactor/artifact/orm/active_record_spec.rb",
117
- "spec/rails3_artifactor/artifact/orm/data_mapper_spec.rb",
118
- "spec/rails3_artifactor/artifact/orm/mongo_mapper_spec.rb",
119
- "spec/rails3_artifactor/artifact/orm/mongoid_spec.rb",
120
- "spec/rails3_artifactor/artifact/orm/none_spec.rb",
121
- "spec/rails3_artifactor/base/crud/create_spec.rb",
122
- "spec/rails3_artifactor/base/crud/delete_spec.rb",
123
- "spec/rails3_artifactor/base/crud/read_spec.rb",
124
- "spec/rails3_artifactor/base/crud/update_spec.rb",
125
- "spec/rails3_artifactor/base/file_name_spec.rb",
126
- "spec/spec_helper.rb"
98
+ "spec/rails3_artifactor/artifact/base_spec.rb",
99
+ "spec/rails3_artifactor/artifact/crud/controller_spec.rb",
100
+ "spec/rails3_artifactor/artifact/crud/helper_spec.rb",
101
+ "spec/rails3_artifactor/artifact/crud/mailer_spec.rb",
102
+ "spec/rails3_artifactor/artifact/crud/migration_spec.rb",
103
+ "spec/rails3_artifactor/artifact/crud/model_active_record_spec.rb",
104
+ "spec/rails3_artifactor/artifact/crud/model_spec.rb",
105
+ "spec/rails3_artifactor/artifact/crud/observer_spec.rb",
106
+ "spec/rails3_artifactor/artifact/crud/permit_spec.rb",
107
+ "spec/rails3_artifactor/artifact/crud/view_controller_action_spec.rb",
108
+ "spec/rails3_artifactor/artifact/crud/view_file_spec.rb",
109
+ "spec/rails3_artifactor/artifact/file_name/artifacts_spec.rb",
110
+ "spec/rails3_artifactor/artifact/file_name/migration_spec.rb",
111
+ "spec/rails3_artifactor/artifact/file_name/view_spec.rb",
112
+ "spec/rails3_artifactor/artifact/markers_spec.rb",
113
+ "spec/rails3_artifactor/artifact/migration_spec.rb",
114
+ "spec/rails3_artifactor/artifact/orm/active_record_spec.rb",
115
+ "spec/rails3_artifactor/artifact/orm/data_mapper_spec.rb",
116
+ "spec/rails3_artifactor/artifact/orm/mongo_mapper_spec.rb",
117
+ "spec/rails3_artifactor/artifact/orm/mongoid_spec.rb",
118
+ "spec/rails3_artifactor/artifact/orm/none_spec.rb",
119
+ "spec/rails3_artifactor/base/crud/create_spec.rb",
120
+ "spec/rails3_artifactor/base/crud/delete_spec.rb",
121
+ "spec/rails3_artifactor/base/crud/read_spec.rb",
122
+ "spec/rails3_artifactor/base/crud/update_spec.rb",
123
+ "spec/rails3_artifactor/base/file_name_spec.rb",
124
+ "spec/spec_helper.rb"
127
125
  ]
128
126
 
129
127
  if s.respond_to? :specification_version then
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe 'permit' do
4
- use_helpers :permit
4
+ use_helper :permit
5
5
 
6
6
  before :each do
7
7
  Rails3::Assist::Directory.rails_root = fixtures_dir
@@ -12,8 +12,8 @@ describe 'view API - symbols' do
12
12
  end
13
13
 
14
14
  it "should find view file using args" do
15
- simple_path = 'views/person/show.erb.html'
16
- admin_path = 'views/person/admin/show.erb.html'
15
+ simple_path = 'views/person/show.html.erb'
16
+ admin_path = 'views/person/admin/show.html.erb'
17
17
 
18
18
  person_show = simple_path_expr(simple_path)
19
19
  person_admin_show = simple_path_expr(admin_path)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 1
9
- version: 0.3.1
8
+ - 2
9
+ version: 0.3.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kristian Mandrup
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-20 00:00:00 +01:00
17
+ date: 2010-12-18 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -133,7 +133,6 @@ extra_rdoc_files:
133
133
  - README.markdown
134
134
  files:
135
135
  - .document
136
- - .gitignore
137
136
  - .rspec
138
137
  - DESIGN_NOTES.markdown
139
138
  - LICENSE
@@ -205,12 +204,12 @@ files:
205
204
  - spec/rails3_artifactor/base/file_name_spec.rb
206
205
  - spec/spec_helper.rb
207
206
  has_rdoc: true
208
- homepage: http://github.com/kristianmandrup/rails3_artifact_helper
207
+ homepage: http://github.com/kristianmandrup/rails3_artifactor
209
208
  licenses: []
210
209
 
211
210
  post_install_message:
212
- rdoc_options:
213
- - --charset=UTF-8
211
+ rdoc_options: []
212
+
214
213
  require_paths:
215
214
  - lib
216
215
  required_ruby_version: !ruby/object:Gem::Requirement
data/.gitignore DELETED
@@ -1,21 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC