publish 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/Gemfile +10 -9
- data/Gemfile.lock +70 -69
- data/lib/mongoid/version.rb +1 -1
- data/publish.gemspec +1 -3
- data/test/support/integration_case.rb +1 -1
- data/test/test_helper.rb +0 -4
- metadata +32 -41
- data/test/publish_test.rb +0 -7
- /data/test/{factories → support/factories}/posts.rb +0 -0
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -1,17 +1,18 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
2
|
|
3
|
-
gem "rails", "3.0.
|
4
|
-
gem "capybara", ">=
|
3
|
+
gem "rails", "3.0.10"
|
4
|
+
gem "capybara", ">= 1.1.1"
|
5
5
|
|
6
|
-
gem
|
7
|
-
|
8
|
-
gem
|
9
|
-
gem
|
6
|
+
gem "bson_ext"
|
7
|
+
|
8
|
+
gem "simplecov", :require => false
|
9
|
+
gem "factory_girl_rails"
|
10
|
+
gem "ffaker"
|
11
|
+
gem "colorific"
|
10
12
|
|
11
|
-
gem "mongoid"
|
12
13
|
|
13
14
|
# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
|
14
|
-
# gem
|
15
|
-
# gem
|
15
|
+
# gem "ruby-debug"
|
16
|
+
# gem "ruby-debug19"
|
16
17
|
|
17
18
|
gemspec
|
data/Gemfile.lock
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
publish (0.0.
|
5
|
-
|
4
|
+
publish (0.0.2)
|
5
|
+
mongoid (>= 2.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
10
|
abstract (1.0.0)
|
11
|
-
actionmailer (3.0.
|
12
|
-
actionpack (= 3.0.
|
11
|
+
actionmailer (3.0.10)
|
12
|
+
actionpack (= 3.0.10)
|
13
13
|
mail (~> 2.2.19)
|
14
|
-
actionpack (3.0.
|
15
|
-
activemodel (= 3.0.
|
16
|
-
activesupport (= 3.0.
|
14
|
+
actionpack (3.0.10)
|
15
|
+
activemodel (= 3.0.10)
|
16
|
+
activesupport (= 3.0.10)
|
17
17
|
builder (~> 2.1.2)
|
18
18
|
erubis (~> 2.6.6)
|
19
19
|
i18n (~> 0.5.0)
|
@@ -21,112 +21,113 @@ GEM
|
|
21
21
|
rack-mount (~> 0.6.14)
|
22
22
|
rack-test (~> 0.5.7)
|
23
23
|
tzinfo (~> 0.3.23)
|
24
|
-
activemodel (3.0.
|
25
|
-
activesupport (= 3.0.
|
24
|
+
activemodel (3.0.10)
|
25
|
+
activesupport (= 3.0.10)
|
26
26
|
builder (~> 2.1.2)
|
27
27
|
i18n (~> 0.5.0)
|
28
|
-
activerecord (3.0.
|
29
|
-
activemodel (= 3.0.
|
30
|
-
activesupport (= 3.0.
|
28
|
+
activerecord (3.0.10)
|
29
|
+
activemodel (= 3.0.10)
|
30
|
+
activesupport (= 3.0.10)
|
31
31
|
arel (~> 2.0.10)
|
32
32
|
tzinfo (~> 0.3.23)
|
33
|
-
activeresource (3.0.
|
34
|
-
activemodel (= 3.0.
|
35
|
-
activesupport (= 3.0.
|
36
|
-
activesupport (3.0.
|
33
|
+
activeresource (3.0.10)
|
34
|
+
activemodel (= 3.0.10)
|
35
|
+
activesupport (= 3.0.10)
|
36
|
+
activesupport (3.0.10)
|
37
37
|
arel (2.0.10)
|
38
|
-
bson (1.
|
39
|
-
bson_ext (1.
|
38
|
+
bson (1.4.0)
|
39
|
+
bson_ext (1.4.0)
|
40
40
|
builder (2.1.2)
|
41
|
-
capybara (
|
42
|
-
celerity (>= 0.7.9)
|
43
|
-
culerity (>= 0.2.4)
|
41
|
+
capybara (1.1.1)
|
44
42
|
mime-types (>= 1.16)
|
45
43
|
nokogiri (>= 1.3.3)
|
46
44
|
rack (>= 1.0.0)
|
47
45
|
rack-test (>= 0.5.4)
|
48
|
-
selenium-webdriver (
|
49
|
-
xpath (~> 0.1.
|
50
|
-
|
51
|
-
childprocess (0.1.8)
|
46
|
+
selenium-webdriver (~> 2.0)
|
47
|
+
xpath (~> 0.1.4)
|
48
|
+
childprocess (0.2.2)
|
52
49
|
ffi (~> 1.0.6)
|
53
|
-
colorific (
|
54
|
-
minitest (~> 2.
|
55
|
-
ruby-progressbar (
|
56
|
-
culerity (0.2.15)
|
50
|
+
colorific (1.0.1)
|
51
|
+
minitest (~> 2.6.2)
|
52
|
+
ruby-progressbar (~> 0.0.10)
|
57
53
|
erubis (2.6.6)
|
58
54
|
abstract (>= 1.0.0)
|
59
|
-
factory_girl (
|
60
|
-
|
61
|
-
|
55
|
+
factory_girl (2.2.0)
|
56
|
+
activesupport
|
57
|
+
factory_girl_rails (1.3.0)
|
58
|
+
factory_girl (~> 2.2.0)
|
62
59
|
railties (>= 3.0.0)
|
63
|
-
ffaker (1.
|
64
|
-
ffi (1.0.
|
65
|
-
rake (>= 0.8.7)
|
60
|
+
ffaker (1.9.1)
|
61
|
+
ffi (1.0.9)
|
66
62
|
i18n (0.5.0)
|
67
|
-
|
63
|
+
json (1.6.1)
|
64
|
+
json_pure (1.6.1)
|
68
65
|
mail (2.2.19)
|
69
66
|
activesupport (>= 2.3.6)
|
70
67
|
i18n (>= 0.4.0)
|
71
68
|
mime-types (~> 1.16)
|
72
69
|
treetop (~> 1.4.8)
|
73
|
-
mime-types (1.
|
74
|
-
minitest (2.
|
75
|
-
mongo (1.
|
76
|
-
bson (
|
77
|
-
mongoid (2.
|
70
|
+
mime-types (1.17.2)
|
71
|
+
minitest (2.6.2)
|
72
|
+
mongo (1.4.0)
|
73
|
+
bson (= 1.4.0)
|
74
|
+
mongoid (2.2.4)
|
78
75
|
activemodel (~> 3.0)
|
79
76
|
mongo (~> 1.3)
|
80
77
|
tzinfo (~> 0.3.22)
|
81
|
-
|
82
|
-
|
83
|
-
|
78
|
+
multi_json (1.0.3)
|
79
|
+
nokogiri (1.5.0)
|
80
|
+
polyglot (0.3.3)
|
81
|
+
rack (1.2.4)
|
84
82
|
rack-mount (0.6.14)
|
85
83
|
rack (>= 1.0.0)
|
86
84
|
rack-test (0.5.7)
|
87
85
|
rack (>= 1.0)
|
88
|
-
rails (3.0.
|
89
|
-
actionmailer (= 3.0.
|
90
|
-
actionpack (= 3.0.
|
91
|
-
activerecord (= 3.0.
|
92
|
-
activeresource (= 3.0.
|
93
|
-
activesupport (= 3.0.
|
86
|
+
rails (3.0.10)
|
87
|
+
actionmailer (= 3.0.10)
|
88
|
+
actionpack (= 3.0.10)
|
89
|
+
activerecord (= 3.0.10)
|
90
|
+
activeresource (= 3.0.10)
|
91
|
+
activesupport (= 3.0.10)
|
94
92
|
bundler (~> 1.0)
|
95
|
-
railties (= 3.0.
|
96
|
-
railties (3.0.
|
97
|
-
actionpack (= 3.0.
|
98
|
-
activesupport (= 3.0.
|
93
|
+
railties (= 3.0.10)
|
94
|
+
railties (3.0.10)
|
95
|
+
actionpack (= 3.0.10)
|
96
|
+
activesupport (= 3.0.10)
|
99
97
|
rake (>= 0.8.7)
|
100
98
|
rdoc (~> 3.4)
|
101
99
|
thor (~> 0.14.4)
|
102
|
-
rake (0.9.2)
|
103
|
-
rdoc (3.
|
104
|
-
|
100
|
+
rake (0.9.2.2)
|
101
|
+
rdoc (3.11)
|
102
|
+
json (~> 1.4)
|
103
|
+
ruby-progressbar (0.0.10)
|
105
104
|
rubyzip (0.9.4)
|
106
|
-
selenium-webdriver (
|
107
|
-
childprocess (>= 0.1
|
108
|
-
ffi (
|
105
|
+
selenium-webdriver (2.10.0)
|
106
|
+
childprocess (>= 0.2.1)
|
107
|
+
ffi (= 1.0.9)
|
109
108
|
json_pure
|
110
109
|
rubyzip
|
111
|
-
simplecov (0.4
|
112
|
-
|
113
|
-
|
110
|
+
simplecov (0.5.4)
|
111
|
+
multi_json (~> 1.0.3)
|
112
|
+
simplecov-html (~> 0.5.3)
|
113
|
+
simplecov-html (0.5.3)
|
114
114
|
thor (0.14.6)
|
115
|
-
treetop (1.4.
|
115
|
+
treetop (1.4.10)
|
116
|
+
polyglot
|
116
117
|
polyglot (>= 0.3.1)
|
117
|
-
tzinfo (0.3.
|
118
|
-
xpath (0.1.
|
118
|
+
tzinfo (0.3.31)
|
119
|
+
xpath (0.1.4)
|
119
120
|
nokogiri (~> 1.3)
|
120
121
|
|
121
122
|
PLATFORMS
|
122
123
|
ruby
|
123
124
|
|
124
125
|
DEPENDENCIES
|
125
|
-
|
126
|
+
bson_ext
|
127
|
+
capybara (>= 1.1.1)
|
126
128
|
colorific
|
127
129
|
factory_girl_rails
|
128
130
|
ffaker
|
129
|
-
mongoid
|
130
131
|
publish!
|
131
|
-
rails (= 3.0.
|
132
|
+
rails (= 3.0.10)
|
132
133
|
simplecov
|
data/lib/mongoid/version.rb
CHANGED
data/publish.gemspec
CHANGED
@@ -19,7 +19,5 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
|
22
|
-
|
23
|
-
#s.add_dependency 'mongoid', '~> 2.0.1'
|
24
|
-
s.add_dependency 'bson_ext', '~> 1.3'
|
22
|
+
s.add_dependency "mongoid", ">= 2.0"
|
25
23
|
end
|
data/test/test_helper.rb
CHANGED
@@ -30,10 +30,6 @@ Capybara.default_selector = :css
|
|
30
30
|
# Load support files
|
31
31
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
32
32
|
|
33
|
-
# Load factories
|
34
|
-
Dir["#{File.dirname(__FILE__)}/factories/*.rb"].each { |f| require f }
|
35
|
-
|
36
|
-
|
37
33
|
class ActiveSupport::TestCase
|
38
34
|
teardown do
|
39
35
|
Mongoid.master.collections.select {|c| c.name !~ /system/ }.each(&:drop)
|
metadata
CHANGED
@@ -1,40 +1,36 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: publish
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
4
5
|
prerelease:
|
5
|
-
version: 0.0.2
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Lucas Renan
|
9
9
|
- Marco Singer
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
prerelease: false
|
19
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
13
|
+
date: 2011-11-07 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: mongoid
|
17
|
+
requirement: &2156349280 !ruby/object:Gem::Requirement
|
20
18
|
none: false
|
21
|
-
requirements:
|
22
|
-
- -
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version:
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '2.0'
|
25
23
|
type: :runtime
|
26
|
-
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *2156349280
|
27
26
|
description: Adds the functionality to publish/unpublish
|
28
|
-
email:
|
27
|
+
email:
|
29
28
|
- contato@lucasrenan.com
|
30
29
|
- markaum@gmail.com
|
31
30
|
executables: []
|
32
|
-
|
33
31
|
extensions: []
|
34
|
-
|
35
32
|
extra_rdoc_files: []
|
36
|
-
|
37
|
-
files:
|
33
|
+
files:
|
38
34
|
- .gitignore
|
39
35
|
- Gemfile
|
40
36
|
- Gemfile.lock
|
@@ -85,40 +81,36 @@ files:
|
|
85
81
|
- test/dummy/public/stylesheets/.gitkeep
|
86
82
|
- test/dummy/public/stylesheets/scaffold.css
|
87
83
|
- test/dummy/script/rails
|
88
|
-
- test/factories/posts.rb
|
89
84
|
- test/integration/navigation_test.rb
|
90
85
|
- test/publish/mongoid/post_test.rb
|
91
|
-
- test/
|
86
|
+
- test/support/factories/posts.rb
|
92
87
|
- test/support/integration_case.rb
|
93
88
|
- test/test_helper.rb
|
94
89
|
homepage: https://github.com/lucasrenan/publish
|
95
90
|
licenses: []
|
96
|
-
|
97
91
|
post_install_message:
|
98
92
|
rdoc_options: []
|
99
|
-
|
100
|
-
require_paths:
|
93
|
+
require_paths:
|
101
94
|
- lib
|
102
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
95
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
103
96
|
none: false
|
104
|
-
requirements:
|
105
|
-
- -
|
106
|
-
- !ruby/object:Gem::Version
|
107
|
-
version:
|
108
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - ! '>='
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '0'
|
101
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
102
|
none: false
|
110
|
-
requirements:
|
111
|
-
- -
|
112
|
-
- !ruby/object:Gem::Version
|
113
|
-
version:
|
103
|
+
requirements:
|
104
|
+
- - ! '>='
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '0'
|
114
107
|
requirements: []
|
115
|
-
|
116
108
|
rubyforge_project: publish
|
117
|
-
rubygems_version: 1.8.
|
109
|
+
rubygems_version: 1.8.11
|
118
110
|
signing_key:
|
119
111
|
specification_version: 3
|
120
112
|
summary: Adds the functionality to publish/unpublish
|
121
|
-
test_files:
|
113
|
+
test_files:
|
122
114
|
- test/dummy/Rakefile
|
123
115
|
- test/dummy/app/controllers/application_controller.rb
|
124
116
|
- test/dummy/app/controllers/posts_controller.rb
|
@@ -159,9 +151,8 @@ test_files:
|
|
159
151
|
- test/dummy/public/stylesheets/.gitkeep
|
160
152
|
- test/dummy/public/stylesheets/scaffold.css
|
161
153
|
- test/dummy/script/rails
|
162
|
-
- test/factories/posts.rb
|
163
154
|
- test/integration/navigation_test.rb
|
164
155
|
- test/publish/mongoid/post_test.rb
|
165
|
-
- test/
|
156
|
+
- test/support/factories/posts.rb
|
166
157
|
- test/support/integration_case.rb
|
167
158
|
- test/test_helper.rb
|
data/test/publish_test.rb
DELETED
File without changes
|