refinerycms-bootstrap 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NWJiNzc3NjA5ZjVjMmI0OTA1YmMxNTgyOTJjMGFhMWE3NGNkYzU2Nw==
5
- data.tar.gz: !binary |-
6
- NjVjMDQ5YmZhMmE4ZDNiNjFmNTdjMTExZDMxZjNlNzg5MjExN2U0Mw==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- OGE4NjBiZmQ5Nzk2NDk0ZjIyZTM1ODI0ZWE4NjBjMTJjMzM3YTM4Njk5OTRk
10
- NTE1MDE4MjAyYTM1YTA0NmJkNDc2ODBiZmU5Yzg1OGM4ZTYyZGYxMjgwNGVi
11
- NGMzZjY0ZmRlYmE4ZDEyZDY4ZTA1MzVhYjlkN2YyMzQ1MTUzMWM=
12
- data.tar.gz: !binary |-
13
- NTc4MzA3YTgzNjI2NDlhMGU3NmIyZTZlN2IxMGI1ZTgxMzZjNjA1MjY4OTdh
14
- MTJjNTA5NTkwOTdkMzYyMzRhM2U1MDkxOGIwNmQwNzQ1ZDdlM2UxM2U1NDVi
15
- ZWQ3MjUwMDc3OTMwM2U5MmU4YjdkYjU4ZTA5ZThjYjE0ZWFkOTM=
2
+ SHA1:
3
+ metadata.gz: f9b852f4f018fcb58a93b44adc0b6574e0a7163a
4
+ data.tar.gz: 2bc4019d66f0668c6752e90997aebec730a7cb68
5
+ SHA512:
6
+ metadata.gz: a4b925b38d04a5cac77441d703944477594915729b03b2444a5512c3aa462e90792ef677838a9a8937f24755cf9263d43e3d2c470fd12109d803b7b816801bcf
7
+ data.tar.gz: 5ad813a3f2fff8352edec590340107932857661cac3ffb0af552f02a9c8a84e70afb67a8c45bca0665b7e0f63e11795809de46ef28560cfd5e5765ccd266e43f
data/README.md CHANGED
@@ -1,24 +1,25 @@
1
- # Refinerycms::Bootstrap
1
+ # Refinery CMS Bootstrap
2
2
 
3
- TODO: Write a gem description
3
+ Refinery CMS extension that adds Twitter Bootstrap 3 via [bootstrap-sass-rails](https://github.com/yabawock/bootstrap-sass-rails) gem.
4
4
 
5
5
  ## Installation
6
6
 
7
- Add this line to your application's Gemfile:
7
+ For Refinery CMS 2.1 stable, add this line to your application's Gemfile:
8
8
 
9
- gem 'refinerycms-bootstrap'
9
+ gem 'refinerycms-bootstrap', :github => 'fernandoaleman/refinerycms-bootstrap', :branch => '2-1-stable'
10
10
 
11
- And then execute:
11
+ For Refinery CMS 2.1 latest, add this line to your application's Gemfile:
12
12
 
13
- $ bundle
13
+ gem 'refinerycms-bootstrap', :github => 'fernandoaleman/refinerycms-bootstrap', :branch => 'master'
14
14
 
15
- Or install it yourself as:
15
+ And then execute:
16
16
 
17
- $ gem install refinerycms-bootstrap
17
+ $ bundle install
18
+ $ rails generate refinery:bootstrap
18
19
 
19
20
  ## Usage
20
21
 
21
- TODO: Write usage instructions here
22
+ Follow the documentation for [Twitter Bootstrap](http://getbootstrap.com).
22
23
 
23
24
  ## Contributing
24
25
 
@@ -26,4 +27,4 @@ TODO: Write usage instructions here
26
27
  2. Create your feature branch (`git checkout -b my-new-feature`)
27
28
  3. Commit your changes (`git commit -am 'Add some feature'`)
28
29
  4. Push to the branch (`git push origin my-new-feature`)
29
- 5. Create new Pull Request
30
+ 5. Create new Pull Request
@@ -0,0 +1,10 @@
1
+ module Refinery
2
+ class BootstrapGenerator < Rails::Generators::Base
3
+
4
+ source_root File.expand_path('../templates', __FILE__)
5
+
6
+ def overwrite_application_stylesheet
7
+ template 'app/assets/stylesheets/application.css', File.join(destination_root, 'app', 'assets', 'stylesheets', 'application.css')
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *
11
+ *= require twitter/bootstrap
12
+ *= require_self
13
+ *= require_tree .
14
+ */
15
+
@@ -0,0 +1,21 @@
1
+ require 'bootstrap-sass-rails'
2
+
3
+ module Refinery
4
+ autoload :BootstrapGenerator, 'generators/refinery/bootstrap/bootstrap_generator'
5
+
6
+ module Bootstrap
7
+ require 'refinery/bootstrap/engine'
8
+
9
+ class << self
10
+ attr_writer :root
11
+
12
+ def root
13
+ @root ||= Pathname.new(File.expand_path('../../../', __FILE__))
14
+ end
15
+
16
+ def factory_paths
17
+ @factory_paths ||= [ root.join('spec/factories').to_s ]
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,15 @@
1
+ module Refinery
2
+ module Bootstrap
3
+ class Engine < Rails::Engine
4
+ include Refinery::Engine
5
+
6
+ isolate_namespace Refinery::Bootstrap
7
+
8
+ engine_name :refinery_bootstrap
9
+
10
+ config.after_initialize do
11
+ Refinery.register_extension(Refinery::Bootstrap)
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1 @@
1
+ require 'refinery/bootstrap'
@@ -1,23 +1,23 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'refinerycms/bootstrap/version'
5
4
 
6
- Gem::Specification.new do |spec|
7
- spec.name = "refinerycms-bootstrap"
8
- spec.version = Refinerycms::Bootstrap::VERSION
9
- spec.authors = ["Fernando Aleman"]
10
- spec.email = ["fernandoaleman@mac.com"]
11
- spec.description = %q{Placeholder for Refinery CMS twitter bootstrap theme}
12
- spec.summary = %q{Placeholder for Refinery CMS twitter bootstrap theme}
13
- spec.homepage = ""
14
- spec.license = "MIT"
5
+ Gem::Specification.new do |s|
6
+ s.name = 'refinerycms-bootstrap'
7
+ s.version = '0.0.1'
8
+ s.authors = ['Fernando Aleman']
9
+ s.email = ['fernandoaleman@mac.com']
10
+ s.description = 'Refinery CMS extension that adds Twitter Bootstrap 3'
11
+ s.summary = 'Refinery CMS extension that adds Twitter Bootstrap 3'
12
+ s.homepage = 'https://github.com/fernandoaleman/refinerycms-bootstrap'
13
+ s.license = 'MIT'
15
14
 
16
- spec.files = `git ls-files`.split($/)
17
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
- spec.require_paths = ["lib"]
15
+ s.files = `git ls-files`.split($/)
16
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
17
+ s.require_paths = ['lib']
20
18
 
21
- spec.add_development_dependency "bundler", "~> 1.3"
22
- spec.add_development_dependency "rake"
19
+ s.add_development_dependency 'bundler', '~> 1.3'
20
+ s.add_development_dependency 'rake'
21
+
22
+ s.add_dependency 'bootstrap-sass-rails'
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Aleman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-01 00:00:00.000000000 Z
11
+ date: 2013-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -28,17 +28,31 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: Placeholder for Refinery CMS twitter bootstrap theme
41
+ - !ruby/object:Gem::Dependency
42
+ name: bootstrap-sass-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Refinery CMS extension that adds Twitter Bootstrap 3
42
56
  email:
43
57
  - fernandoaleman@mac.com
44
58
  executables: []
@@ -50,10 +64,13 @@ files:
50
64
  - LICENSE.txt
51
65
  - README.md
52
66
  - Rakefile
53
- - lib/refinerycms/bootstrap.rb
54
- - lib/refinerycms/bootstrap/version.rb
67
+ - lib/generators/refinery/bootstrap/bootstrap_generator.rb
68
+ - lib/generators/refinery/bootstrap/templates/app/assets/stylesheets/application.css
69
+ - lib/refinery/bootstrap.rb
70
+ - lib/refinery/bootstrap/engine.rb
71
+ - lib/refinerycms-bootstrap.rb
55
72
  - refinerycms-bootstrap.gemspec
56
- homepage: ''
73
+ homepage: https://github.com/fernandoaleman/refinerycms-bootstrap
57
74
  licenses:
58
75
  - MIT
59
76
  metadata: {}
@@ -63,18 +80,18 @@ require_paths:
63
80
  - lib
64
81
  required_ruby_version: !ruby/object:Gem::Requirement
65
82
  requirements:
66
- - - ! '>='
83
+ - - '>='
67
84
  - !ruby/object:Gem::Version
68
85
  version: '0'
69
86
  required_rubygems_version: !ruby/object:Gem::Requirement
70
87
  requirements:
71
- - - ! '>='
88
+ - - '>='
72
89
  - !ruby/object:Gem::Version
73
90
  version: '0'
74
91
  requirements: []
75
92
  rubyforge_project:
76
- rubygems_version: 2.0.3
93
+ rubygems_version: 2.0.6
77
94
  signing_key:
78
95
  specification_version: 4
79
- summary: Placeholder for Refinery CMS twitter bootstrap theme
96
+ summary: Refinery CMS extension that adds Twitter Bootstrap 3
80
97
  test_files: []
@@ -1,7 +0,0 @@
1
- require "refinerycms/bootstrap/version"
2
-
3
- module Refinerycms
4
- module Bootstrap
5
- # Your code goes here...
6
- end
7
- end
@@ -1,5 +0,0 @@
1
- module Refinerycms
2
- module Bootstrap
3
- VERSION = "0.0.0"
4
- end
5
- end