sbdevcore 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/.idea/workspace.xml CHANGED
@@ -1,12 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="ChangeListManager" verified="true">
4
- <list default="true" readonly="true" id="b8b56ec4-45f8-4144-afba-a1bc2f2f511f" name="Default" comment="">
5
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/sbdevcore/version.rb" afterPath="$PROJECT_DIR$/lib/sbdevcore/version.rb" />
6
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/models/index.rb" afterPath="$PROJECT_DIR$/app/models/index.rb" />
7
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
8
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/sbdevcore.gemspec" afterPath="$PROJECT_DIR$/sbdevcore.gemspec" />
9
- </list>
4
+ <list default="true" readonly="true" id="b8b56ec4-45f8-4144-afba-a1bc2f2f511f" name="Default" comment="" />
10
5
  <ignored path=".idea/" />
11
6
  <option name="TRACKING_ENABLED" value="true" />
12
7
  <option name="SHOW_DIALOG" value="false" />
@@ -28,10 +23,10 @@
28
23
  <component name="FileColors" enabled="true" enabledForTabs="true" />
29
24
  <component name="FileEditorManager">
30
25
  <leaf>
31
- <file leaf-file-name="index.rb" pinned="false" current="false" current-in-tab="false">
26
+ <file leaf-file-name="index.rb" pinned="false" current="true" current-in-tab="true">
32
27
  <entry file="file://$PROJECT_DIR$/app/models/index.rb">
33
28
  <provider selected="true" editor-type-id="text-editor">
34
- <state line="42" column="66" selection-start="1649" selection-end="1649" vertical-scroll-proportion="0.0">
29
+ <state line="42" column="70" selection-start="1653" selection-end="1653" vertical-scroll-proportion="0.6980609">
35
30
  <folding />
36
31
  </state>
37
32
  </provider>
@@ -55,10 +50,10 @@
55
50
  </provider>
56
51
  </entry>
57
52
  </file>
58
- <file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
53
+ <file leaf-file-name="version.rb" pinned="false" current="false" current-in-tab="false">
59
54
  <entry file="file://$PROJECT_DIR$/lib/sbdevcore/version.rb">
60
55
  <provider selected="true" editor-type-id="text-editor">
61
- <state line="1" column="18" selection-start="35" selection-end="35" vertical-scroll-proportion="0.016282225">
56
+ <state line="1" column="18" selection-start="35" selection-end="35" vertical-scroll-proportion="0.0">
62
57
  <folding />
63
58
  </state>
64
59
  </provider>
@@ -145,8 +140,8 @@
145
140
  <option value="$PROJECT_DIR$/app/views/indices/_show.html.haml" />
146
141
  <option value="$PROJECT_DIR$/app/views/galleries/_show.html.haml" />
147
142
  <option value="$PROJECT_DIR$/sbdevcore.gemspec" />
148
- <option value="$PROJECT_DIR$/app/models/index.rb" />
149
143
  <option value="$PROJECT_DIR$/lib/sbdevcore/version.rb" />
144
+ <option value="$PROJECT_DIR$/app/models/index.rb" />
150
145
  </list>
151
146
  </option>
152
147
  </component>
@@ -640,7 +635,7 @@
640
635
  <option name="ENABLE_BACKGROUND_PROCESSES" value="true" />
641
636
  <option name="CHANGED_ON_SERVER_INTERVAL" value="5" />
642
637
  <option name="FORCE_NON_EMPTY_COMMENT" value="false" />
643
- <option name="LAST_COMMIT_MESSAGE" value="gallery" />
638
+ <option name="LAST_COMMIT_MESSAGE" value="&#10;tablize" />
644
639
  <option name="MAKE_NEW_CHANGELIST_ACTIVE" value="true" />
645
640
  <option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
646
641
  <option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
@@ -667,6 +662,7 @@
667
662
  <MESSAGE value="ajax" />
668
663
  <MESSAGE value="ajax history" />
669
664
  <MESSAGE value="gallery" />
665
+ <MESSAGE value="&#10;tablize" />
670
666
  </component>
671
667
  <component name="XDebuggerManager">
672
668
  <breakpoint-manager>
@@ -741,26 +737,26 @@
741
737
  <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
742
738
  </provider>
743
739
  </entry>
744
- <entry file="file://$PROJECT_DIR$/app/models/index.rb">
740
+ <entry file="file://$PROJECT_DIR$/lib/sbdevcore/version.rb">
745
741
  <provider selected="true" editor-type-id="text-editor">
746
- <state line="42" column="66" selection-start="1649" selection-end="1649" vertical-scroll-proportion="0.0">
742
+ <state line="1" column="18" selection-start="35" selection-end="35" vertical-scroll-proportion="0.0">
747
743
  <folding />
748
744
  </state>
749
745
  </provider>
750
746
  </entry>
751
- <entry file="file://$PROJECT_DIR$/sbdevcore.gemspec">
747
+ <entry file="file://$PROJECT_DIR$/lib/generators/sbdevcore/install_generator.rb">
752
748
  <provider selected="true" editor-type-id="text-editor">
753
- <state line="21" column="45" selection-start="694" selection-end="694" vertical-scroll-proportion="0.0" />
749
+ <state line="29" column="31" selection-start="890" selection-end="890" vertical-scroll-proportion="0.0" />
754
750
  </provider>
755
751
  </entry>
756
- <entry file="file://$PROJECT_DIR$/lib/generators/sbdevcore/install_generator.rb">
752
+ <entry file="file://$PROJECT_DIR$/sbdevcore.gemspec">
757
753
  <provider selected="true" editor-type-id="text-editor">
758
- <state line="29" column="31" selection-start="890" selection-end="890" vertical-scroll-proportion="0.0" />
754
+ <state line="21" column="45" selection-start="694" selection-end="694" vertical-scroll-proportion="0.0" />
759
755
  </provider>
760
756
  </entry>
761
- <entry file="file://$PROJECT_DIR$/lib/sbdevcore/version.rb">
757
+ <entry file="file://$PROJECT_DIR$/app/models/index.rb">
762
758
  <provider selected="true" editor-type-id="text-editor">
763
- <state line="1" column="18" selection-start="35" selection-end="35" vertical-scroll-proportion="0.016282225">
759
+ <state line="42" column="70" selection-start="1653" selection-end="1653" vertical-scroll-proportion="0.6980609">
764
760
  <folding />
765
761
  </state>
766
762
  </provider>
data/app/models/index.rb CHANGED
@@ -40,6 +40,6 @@ class Index < ActiveRecord::Base
40
40
  end
41
41
 
42
42
  def default_name
43
- self.name ||= self.title.tableize ||= self.owner.name.titleize
43
+ self.name ||= (self.title ||= self.owner.name).tableize rescue nil
44
44
  end
45
45
  end
@@ -1,3 +1,3 @@
1
1
  module Sbdevcore
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sbdevcore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-09-06 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: tinymce-rails
16
- requirement: &2160197560 !ruby/object:Gem::Requirement
16
+ requirement: &2161097660 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2160197560
24
+ version_requirements: *2161097660
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: prioritizable
27
- requirement: &2160196980 !ruby/object:Gem::Requirement
27
+ requirement: &2161097160 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.0.5
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2160196980
35
+ version_requirements: *2161097160
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: devise
38
- requirement: &2160196500 !ruby/object:Gem::Requirement
38
+ requirement: &2161096740 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2160196500
46
+ version_requirements: *2161096740
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: paperclip
49
- requirement: &2160195840 !ruby/object:Gem::Requirement
49
+ requirement: &2161096260 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *2160195840
57
+ version_requirements: *2161096260
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: haml-edge
60
- requirement: &2160195360 !ruby/object:Gem::Requirement
60
+ requirement: &2161095800 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *2160195360
68
+ version_requirements: *2161095800
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sitemap_generator
71
- requirement: &2160194900 !ruby/object:Gem::Requirement
71
+ requirement: &2161095340 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *2160194900
79
+ version_requirements: *2161095340
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: hpricot
82
- requirement: &2160194300 !ruby/object:Gem::Requirement
82
+ requirement: &2161094900 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *2160194300
90
+ version_requirements: *2161094900
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: simple_form
93
- requirement: &2160193740 !ruby/object:Gem::Requirement
93
+ requirement: &2161094420 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *2160193740
101
+ version_requirements: *2161094420
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: client_side_validations
104
- requirement: &2160193180 !ruby/object:Gem::Requirement
104
+ requirement: &2161093980 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '0'
110
110
  type: :runtime
111
111
  prerelease: false
112
- version_requirements: *2160193180
112
+ version_requirements: *2161093980
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: formalize-rails
115
- requirement: &2160192740 !ruby/object:Gem::Requirement
115
+ requirement: &2161093540 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: '0'
121
121
  type: :runtime
122
122
  prerelease: false
123
- version_requirements: *2160192740
123
+ version_requirements: *2161093540
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: will_paginate
126
- requirement: &2160192060 !ruby/object:Gem::Requirement
126
+ requirement: &2161093020 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ~>
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: 3.0.pre4
132
132
  type: :runtime
133
133
  prerelease: false
134
- version_requirements: *2160192060
134
+ version_requirements: *2161093020
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: aws-s3
137
- requirement: &2160191560 !ruby/object:Gem::Requirement
137
+ requirement: &2161092560 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: '0'
143
143
  type: :runtime
144
144
  prerelease: false
145
- version_requirements: *2160191560
145
+ version_requirements: *2161092560
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: rubyist-aasm
148
- requirement: &2160190940 !ruby/object:Gem::Requirement
148
+ requirement: &2161092100 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ! '>='
@@ -153,10 +153,10 @@ dependencies:
153
153
  version: '0'
154
154
  type: :runtime
155
155
  prerelease: false
156
- version_requirements: *2160190940
156
+ version_requirements: *2161092100
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: inherited_resources
159
- requirement: &2160190500 !ruby/object:Gem::Requirement
159
+ requirement: &2161091660 !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
162
162
  - - ! '>='
@@ -164,10 +164,10 @@ dependencies:
164
164
  version: '0'
165
165
  type: :runtime
166
166
  prerelease: false
167
- version_requirements: *2160190500
167
+ version_requirements: *2161091660
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: friendly_id
170
- requirement: &2160190000 !ruby/object:Gem::Requirement
170
+ requirement: &2161091100 !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
173
173
  - - ~>
@@ -175,7 +175,7 @@ dependencies:
175
175
  version: 4.0.0.beta8
176
176
  type: :runtime
177
177
  prerelease: false
178
- version_requirements: *2160190000
178
+ version_requirements: *2161091100
179
179
  description: Core
180
180
  email:
181
181
  - aosalias@gmail.com