shim 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ module Shim
2
+ module PagesHelper
3
+ def current_section
4
+ params[:id].split("/").first
5
+ end
6
+
7
+ def nav_class(section)
8
+ if current_section == section
9
+ "current-page"
10
+ else
11
+ ""
12
+ end
13
+ end
14
+ end
15
+ end
data/lib/shim/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Shim
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/shim.gemspec CHANGED
@@ -17,9 +17,6 @@ Gem::Specification.new do |gem|
17
17
  gem.executables = ['shim']
18
18
  gem.version = Shim::VERSION
19
19
 
20
- gem.add_dependency 'thor'
21
- gem.add_dependency 'guard'
22
-
23
20
  gem.add_dependency 'rails', '~> 3.2.2'
24
21
  gem.add_dependency 'jquery-rails'
25
22
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,40 +10,8 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-08-27 00:00:00.000000000 Z
13
+ date: 2012-10-25 00:00:00.000000000 Z
14
14
  dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: thor
17
- requirement: !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
22
- version: '0'
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - ! '>='
29
- - !ruby/object:Gem::Version
30
- version: '0'
31
- - !ruby/object:Gem::Dependency
32
- name: guard
33
- requirement: !ruby/object:Gem::Requirement
34
- none: false
35
- requirements:
36
- - - ! '>='
37
- - !ruby/object:Gem::Version
38
- version: '0'
39
- type: :runtime
40
- prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
44
- - - ! '>='
45
- - !ruby/object:Gem::Version
46
- version: '0'
47
15
  - !ruby/object:Gem::Dependency
48
16
  name: rails
49
17
  requirement: !ruby/object:Gem::Requirement
@@ -130,6 +98,7 @@ files:
130
98
  - app/controllers/shim/application_controller.rb
131
99
  - app/controllers/shim/pages_controller.rb
132
100
  - app/helpers/shim/application_helper.rb
101
+ - app/helpers/shim/pages_helper.rb
133
102
  - app/views/layouts/shim/application.html.erb
134
103
  - bin/shim
135
104
  - config/routes.rb
@@ -197,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
166
  version: '0'
198
167
  requirements: []
199
168
  rubyforge_project:
200
- rubygems_version: 1.8.24
169
+ rubygems_version: 1.8.23
201
170
  signing_key:
202
171
  specification_version: 3
203
172
  summary: Shim follows Rails principles to create a CMS environment familiar to developers