kentouzu 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc CHANGED
@@ -4,7 +4,7 @@
4
4
  # development environment upon cd'ing into the directory
5
5
 
6
6
  # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
7
- environment_id="ruby-1.9.3-p194@kentouzu"
7
+ environment_id="ruby-1.9.3-p385@kentouzu"
8
8
 
9
9
  #
10
10
  # Uncomment the following lines if you want to verify rvm version per project
@@ -77,4 +77,4 @@ then
77
77
  echo "Using: $(tput setaf 2)$GEM_HOME$(tput sgr0)" # show the user the ruby and gemset they are using in green
78
78
  else
79
79
  echo "Using: $GEM_HOME" # don't use colors in interactive shells
80
- fi
80
+ fi
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.0.5
2
+
3
+ * Removed debug output from new save method.
4
+
1
5
  ## v0.0.4
2
6
 
3
7
  * `save` now uses `base_class` instead of just `class`.
data/Gemfile.lock CHANGED
@@ -1,32 +1,32 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kentouzu (0.0.3)
4
+ kentouzu (0.0.5)
5
5
  activerecord (~> 3.0)
6
6
  railties (~> 3.0)
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
- actionpack (3.2.8)
12
- activemodel (= 3.2.8)
13
- activesupport (= 3.2.8)
11
+ actionpack (3.2.12)
12
+ activemodel (= 3.2.12)
13
+ activesupport (= 3.2.12)
14
14
  builder (~> 3.0.0)
15
15
  erubis (~> 2.7.0)
16
16
  journey (~> 1.0.4)
17
- rack (~> 1.4.0)
17
+ rack (~> 1.4.5)
18
18
  rack-cache (~> 1.2)
19
19
  rack-test (~> 0.6.1)
20
- sprockets (~> 2.1.3)
21
- activemodel (3.2.8)
22
- activesupport (= 3.2.8)
20
+ sprockets (~> 2.2.1)
21
+ activemodel (3.2.12)
22
+ activesupport (= 3.2.12)
23
23
  builder (~> 3.0.0)
24
- activerecord (3.2.8)
25
- activemodel (= 3.2.8)
26
- activesupport (= 3.2.8)
24
+ activerecord (3.2.12)
25
+ activemodel (= 3.2.12)
26
+ activesupport (= 3.2.12)
27
27
  arel (~> 3.0.2)
28
28
  tzinfo (~> 0.3.29)
29
- activesupport (3.2.8)
29
+ activesupport (3.2.12)
30
30
  i18n (~> 0.6)
31
31
  multi_json (~> 1.0)
32
32
  arel (3.0.2)
@@ -36,38 +36,39 @@ GEM
36
36
  hike (1.2.1)
37
37
  i18n (0.6.1)
38
38
  journey (1.0.4)
39
- json (1.7.5)
40
- multi_json (1.3.7)
41
- rack (1.4.1)
39
+ json (1.7.7)
40
+ multi_json (1.6.1)
41
+ rack (1.4.5)
42
42
  rack-cache (1.2)
43
43
  rack (>= 0.4)
44
- rack-ssl (1.3.2)
44
+ rack-ssl (1.3.3)
45
45
  rack
46
46
  rack-test (0.6.2)
47
47
  rack (>= 1.0)
48
- railties (3.2.8)
49
- actionpack (= 3.2.8)
50
- activesupport (= 3.2.8)
48
+ railties (3.2.12)
49
+ actionpack (= 3.2.12)
50
+ activesupport (= 3.2.12)
51
51
  rack-ssl (~> 1.3.2)
52
52
  rake (>= 0.8.7)
53
53
  rdoc (~> 3.4)
54
54
  thor (>= 0.14.6, < 2.0)
55
- rake (10.0.1)
56
- rdoc (3.12)
55
+ rake (10.0.3)
56
+ rdoc (3.12.1)
57
57
  json (~> 1.4)
58
- rspec (2.11.0)
59
- rspec-core (~> 2.11.0)
60
- rspec-expectations (~> 2.11.0)
61
- rspec-mocks (~> 2.11.0)
62
- rspec-core (2.11.1)
63
- rspec-expectations (2.11.3)
58
+ rspec (2.12.0)
59
+ rspec-core (~> 2.12.0)
60
+ rspec-expectations (~> 2.12.0)
61
+ rspec-mocks (~> 2.12.0)
62
+ rspec-core (2.12.2)
63
+ rspec-expectations (2.12.1)
64
64
  diff-lcs (~> 1.1.3)
65
- rspec-mocks (2.11.3)
66
- sprockets (2.1.3)
65
+ rspec-mocks (2.12.2)
66
+ sprockets (2.2.2)
67
67
  hike (~> 1.2)
68
+ multi_json (~> 1.0)
68
69
  rack (~> 1.0)
69
70
  tilt (~> 1.1, != 1.3.0)
70
- thor (0.16.0)
71
+ thor (0.17.0)
71
72
  tilt (1.3.3)
72
73
  tzinfo (0.3.35)
73
74
 
@@ -22,10 +22,6 @@ module Kentouzu
22
22
 
23
23
  private
24
24
 
25
- def set_drafts_enabled_for_controller
26
- ::Kentouzu.enabled_for_controller = drafts_enabled_for_controller
27
- end
28
-
29
25
  def set_drafts_source
30
26
  ::Kentouzu.source = user_for_drafts
31
27
  end
@@ -33,5 +29,9 @@ module Kentouzu
33
29
  def set_drafts_controller_info
34
30
  ::Kentouzu.controller_info = info_for_drafts
35
31
  end
32
+
33
+ def set_drafts_enabled_for_controller
34
+ ::Kentouzu.enabled_for_controller = drafts_enabled_for_controller
35
+ end
36
36
  end
37
37
  end
@@ -69,10 +69,6 @@ module Kentouzu
69
69
 
70
70
  draft.save
71
71
  else
72
- puts "calling default save"
73
-
74
- puts self.inspect
75
-
76
72
  default_save.bind(self).()
77
73
  end
78
74
  end
@@ -1,3 +1,3 @@
1
1
  module Kentouzu
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kentouzu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-16 00:00:00.000000000 Z
12
+ date: 2013-02-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  version: '0'
106
106
  requirements: []
107
107
  rubyforge_project: kentouzu
108
- rubygems_version: 1.8.23
108
+ rubygems_version: 1.8.25
109
109
  signing_key:
110
110
  specification_version: 3
111
111
  summary: Add drafts to ActiveRecord models.