staple 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +8 -6
- data/README.md +4 -1
- data/lib/staple/install_generator.rb +10 -14
- data/staple.gemspec +3 -3
- metadata +1 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1865bc8e366fe9144c0ce1c30aaa82b59571431f
|
4
|
+
data.tar.gz: a8dde4f1230ad964995e901b18a7977e5eaac7ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: defca9e1db4c0986824eeb582f42a73cc7a008b407c283f4ba732216a8e75bc622f74b33407907d53775e496e1f23098e4ed75f1b228cdd587f71940723d14ba
|
7
|
+
data.tar.gz: ab7c9a0dae438cf2a4e69b2905920a07a559b0353adc2fa104b182614b2e76eec57814fbc9b16b8888a7ce5bab47937aafdec0935f27151457582f283ff0fe8b
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -53,5 +53,8 @@ gem push staple-0.0.1.gem
|
|
53
53
|
#TODO
|
54
54
|
|
55
55
|
* fix foundation-rails require, inlcude install in staple install?
|
56
|
+
* declaring as dependency does not load it?
|
56
57
|
* set scaffold to use slim? simple_form?
|
57
|
-
* stop spring
|
58
|
+
* stop spring
|
59
|
+
* make scaffold/generator use simple form/slim. not generate css
|
60
|
+
* make install compatible with existing projects
|
@@ -5,17 +5,17 @@ module Staple
|
|
5
5
|
desc 'Install foundation w/ slim template, simple form and staple base styles'
|
6
6
|
source_root File.join(File.dirname(__FILE__), '..', '..')
|
7
7
|
def foundation_install
|
8
|
-
|
9
|
-
insert_into_file "app/assets/javascripts/application#{detect_js_format[0]}", "#{detect_js_format[1]} require foundation\n", :after => "jquery_ujs\n"
|
10
|
-
append_to_file "app/assets/javascripts/application#{detect_js_format[0]}", "#{detect_js_format[2]}"
|
11
|
-
# NOT NEEDED:
|
12
|
-
# settings_file = File.join(File.dirname(__FILE__),"..", "..", "..", "..", "vendor", "assets", "stylesheets", "foundation", "_settings.scss")
|
13
|
-
# create_file "app/assets/stylesheets/foundation_and_overrides.scss", File.read(settings_file)
|
14
|
-
# append_to_file "app/assets/stylesheets/foundation_and_overrides.scss", "\n@import 'foundation';\n"
|
8
|
+
generate "foundation:install", "--slim" #rails g foundation:install --slim
|
9
|
+
# insert_into_file "app/assets/javascripts/application#{detect_js_format[0]}", "#{detect_js_format[1]} require foundation\n", :after => "jquery_ujs\n"
|
10
|
+
# append_to_file "app/assets/javascripts/application#{detect_js_format[0]}", "#{detect_js_format[2]}"
|
11
|
+
# # NOT NEEDED:
|
12
|
+
# # settings_file = File.join(File.dirname(__FILE__),"..", "..", "..", "..", "vendor", "assets", "stylesheets", "foundation", "_settings.scss")
|
13
|
+
# # create_file "app/assets/stylesheets/foundation_and_overrides.scss", File.read(settings_file)
|
14
|
+
# # append_to_file "app/assets/stylesheets/foundation_and_overrides.scss", "\n@import 'foundation';\n"
|
15
15
|
copy_file "source/foundation/foundation_and_overrides.scss", "app/assets/stylesheets/foundation_and_overrides.scss", :force => true
|
16
|
-
insert_into_file "app/assets/stylesheets/application#{detect_css_format[0]}", "\n#{detect_css_format[1]} require foundation_and_overrides\n", :after => "require_self"
|
17
|
-
template 'source/foundation/application.html.slim', "app/views/layouts/application.html.slim"
|
18
|
-
remove_file 'app/views/layouts/application.html.erb'
|
16
|
+
# insert_into_file "app/assets/stylesheets/application#{detect_css_format[0]}", "\n#{detect_css_format[1]} require foundation_and_overrides\n", :after => "require_self"
|
17
|
+
# template 'source/foundation/application.html.slim', "app/views/layouts/application.html.slim"
|
18
|
+
# remove_file 'app/views/layouts/application.html.erb'
|
19
19
|
end
|
20
20
|
|
21
21
|
def simple_form_install
|
@@ -39,10 +39,6 @@ module Staple
|
|
39
39
|
gsub_file "config/initializers/simple_form_foundation.rb", "# b.use :hint, wrap_with: { tag: :span, class: :hint }", "b.use :hint, wrap_with: { tag: :small, class: :error }"
|
40
40
|
end
|
41
41
|
|
42
|
-
def simplify_foundation_and_overrides
|
43
|
-
copy_file "source/foundation_and_overrides.scss", "app/assets/stylesheets/foundation_and_overrides.scss", :force => true
|
44
|
-
end
|
45
|
-
|
46
42
|
#import base style
|
47
43
|
|
48
44
|
def detect_css_format
|
data/staple.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "staple"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.5"
|
8
8
|
spec.summary = "a high level ui generator (COMING SOON)"
|
9
9
|
spec.description = "Does not work yet. Coming Soon. Built on top of foundation. In the spirit of thoughtbot/refills"
|
10
10
|
spec.authors = ["Ryan Helsing"]
|
@@ -12,8 +12,8 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.homepage = "https://github.com/rhelsing/staple"
|
13
13
|
spec.license = "MIT"
|
14
14
|
|
15
|
-
spec.add_runtime_dependency 'font-awesome-rails', '~> 4.2', '>= 4.2.0.0'
|
16
|
-
spec.add_runtime_dependency 'foundation-rails', '~> 5.4', '>= 5.4.5.0'
|
15
|
+
# spec.add_runtime_dependency 'font-awesome-rails', '~> 4.2', '>= 4.2.0.0'
|
16
|
+
# spec.add_runtime_dependency 'foundation-rails', '~> 5.4', '>= 5.4.5.0'
|
17
17
|
spec.add_runtime_dependency 'simple_form', '~> 3.0', '>= 3.0.2'
|
18
18
|
spec.add_runtime_dependency 'slim-rails', '~> 2.1', '>= 2.1.0'
|
19
19
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: staple
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Helsing
|
@@ -10,46 +10,6 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2014-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: font-awesome-rails
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '4.2'
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 4.2.0.0
|
23
|
-
type: :runtime
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '4.2'
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 4.2.0.0
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: foundation-rails
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '5.4'
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: 5.4.5.0
|
43
|
-
type: :runtime
|
44
|
-
prerelease: false
|
45
|
-
version_requirements: !ruby/object:Gem::Requirement
|
46
|
-
requirements:
|
47
|
-
- - "~>"
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '5.4'
|
50
|
-
- - ">="
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: 5.4.5.0
|
53
13
|
- !ruby/object:Gem::Dependency
|
54
14
|
name: simple_form
|
55
15
|
requirement: !ruby/object:Gem::Requirement
|