tkh_admin_panel 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md CHANGED
@@ -1,9 +1,13 @@
1
- # TkhAdminPanel
1
+ # TKH Admin Panel
2
+
3
+
4
+ ## 0.0.2
5
+
6
+ * It is not anymore necessary to have the bootstrap-sass gem in the host application Gemfile
7
+ * It is not anymore necessary for precompile instructions to be mentioned in the host app's production environment file
2
8
 
3
9
 
4
10
  ## 0.0.1
5
11
 
6
12
  * Hooked the layout to Twitter bootstrap
7
13
  * Creation of admin.html.erb in layout folder
8
-
9
-
data/README.md CHANGED
@@ -1,31 +1,32 @@
1
- # TkhAdminPanel
1
+ # TKH Admin Panel
2
2
 
3
3
  This is a Rails engine with an admin panel layout, assets and basic functionality.
4
4
 
5
5
  Primarily developed for Ten Thousand Hours but we are happy to share if anybody finds it useful.
6
6
 
7
+ Please note that this gem is still in its embryonic phase. I'm just getting started.
8
+
7
9
  ## Installation
8
10
 
9
- This gem was created in sync with Rails 3.2.6 and there is a railstie dependency of "~> 3.2". Add this line to your application's Gemfile:
11
+ This gem was created in sync with Rails 3.2.6 and there is a railties dependency of "~> 3.2". Add this line to your application's Gemfile:
10
12
 
11
- gem 'tkh_admin_panel'
13
+ gem 'tkh_admin_panel', '~> 0.0'
12
14
 
13
15
  And then execute:
14
16
 
15
17
  $ bundle
16
18
 
17
- Or install it yourself as:
19
+ And then of course restart your server!
18
20
 
19
- $ gem install tkh_admin_panel
20
21
 
21
22
  ## Usage
22
23
 
23
- You also need to do the following:
24
+ In your controller(s):
25
+
26
+ $ render layout: 'admin'
27
+
28
+ ... for whichever actions you want to use this layout
24
29
 
25
- * add admin.js and admin.css to your config.assets.precompile in your production environment config file
26
- * render layout: 'admin' for the controller actions you want to be linked to this layout
27
- * Add a gem 'bootstrap-sass' line to your gemfile in the assets group and run bundle
28
- * Restart your server
29
30
 
30
31
  ## Contributing
31
32
 
@@ -33,6 +34,8 @@ Pull requests for new features and bug fixes are welcome.
33
34
 
34
35
  1. Fork it
35
36
  2. Create your feature branch (`git checkout -b my-new-feature`)
36
- 3. Commit your changes (`git commit -am 'Added some feature'`)
37
- 4. Push to the branch (`git push origin my-new-feature`)
38
- 5. Create new Pull Request
37
+ 3. Create your failing tests based on the Test Unit framework.
38
+ 4. Create your code which makes the tests pass.
39
+ 5. Commit your changes (`git commit -am 'Added some feature'`)
40
+ 6. Push to the branch (`git push origin my-new-feature`)
41
+ 7. Create new Pull Request
@@ -1,9 +1,10 @@
1
1
  require "tkh_admin_panel/version"
2
+ require 'bootstrap-sass'
2
3
 
3
4
  module TkhAdminPanel
4
- # I don't think this is necessary
5
- # module Rails
6
- class Engine < ::Rails::Engine
5
+ class Engine < ::Rails::Engine
6
+ initializer "TkhAdminPanel precompile hook", :group => :all do |app|
7
+ app.config.assets.precompile += ['admin.js', 'admin.css']
7
8
  end
8
- # end
9
+ end
9
10
  end
@@ -1,3 +1,3 @@
1
1
  module TkhAdminPanel
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -6,11 +6,10 @@ Gem::Specification.new do |gem|
6
6
  gem.email = ["swami@TenThousandHours.eu"]
7
7
  gem.description = %q{Admin panel layout engine}
8
8
  gem.summary = %q{A Rails admin panel engine with layout, assets, and basic functionality}
9
- gem.homepage = ""
9
+ gem.homepage = "https://github.com/allesklar/tkh_admin_panel"
10
10
 
11
11
  gem.add_dependency "railties", "~> 3.2"
12
- gem.add_dependency "sass-rails"
13
- gem.add_dependency "bootstrap-sass"
12
+ gem.add_dependency "bootstrap-sass", '~> 2.0'
14
13
 
15
14
  gem.files = `git ls-files`.split($\)
16
15
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkh_admin_panel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
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-07-24 00:00:00.000000000 Z
12
+ date: 2012-07-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -27,38 +27,22 @@ dependencies:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
29
  version: '3.2'
30
- - !ruby/object:Gem::Dependency
31
- name: sass-rails
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :runtime
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
30
  - !ruby/object:Gem::Dependency
47
31
  name: bootstrap-sass
48
32
  requirement: !ruby/object:Gem::Requirement
49
33
  none: false
50
34
  requirements:
51
- - - ! '>='
35
+ - - ~>
52
36
  - !ruby/object:Gem::Version
53
- version: '0'
37
+ version: '2.0'
54
38
  type: :runtime
55
39
  prerelease: false
56
40
  version_requirements: !ruby/object:Gem::Requirement
57
41
  none: false
58
42
  requirements:
59
- - - ! '>='
43
+ - - ~>
60
44
  - !ruby/object:Gem::Version
61
- version: '0'
45
+ version: '2.0'
62
46
  description: Admin panel layout engine
63
47
  email:
64
48
  - swami@TenThousandHours.eu
@@ -83,7 +67,7 @@ files:
83
67
  - public/.DS_Store
84
68
  - public/favicon.ico
85
69
  - tkh_admin_panel.gemspec
86
- homepage: ''
70
+ homepage: https://github.com/allesklar/tkh_admin_panel
87
71
  licenses: []
88
72
  post_install_message:
89
73
  rdoc_options: []