gem_2345 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. data/lib/gem_2345/import-once.rb +28 -0
  2. data/lib/gem_2345/import-once/activate.rb +20 -0
  3. data/lib/gem_2345/import-once/engine.rb +36 -0
  4. data/lib/gem_2345/import-once/importer.rb +81 -0
  5. data/lib/gem_2345/import-once/version.rb +5 -0
  6. data/lib/gem_2345/version.rb +1 -1
  7. data/stylesheets/_compass.scss +3 -0
  8. data/stylesheets/_lemonade.scss +38 -0
  9. data/stylesheets/compass/_configuration.scss +54 -0
  10. data/stylesheets/compass/_css3.scss +21 -0
  11. data/stylesheets/compass/_layout.scss +3 -0
  12. data/stylesheets/compass/_reset-legacy.scss +3 -0
  13. data/stylesheets/compass/_reset.scss +3 -0
  14. data/stylesheets/compass/_support.scss +447 -0
  15. data/stylesheets/compass/_typography.scss +4 -0
  16. data/stylesheets/compass/_utilities.scss +9 -0
  17. data/stylesheets/compass/css3/_animation.scss +122 -0
  18. data/stylesheets/compass/css3/_appearance.scss +17 -0
  19. data/stylesheets/compass/css3/_background-clip.scss +35 -0
  20. data/stylesheets/compass/css3/_background-origin.scss +37 -0
  21. data/stylesheets/compass/css3/_background-size.scss +19 -0
  22. data/stylesheets/compass/css3/_border-radius.scss +107 -0
  23. data/stylesheets/compass/css3/_box-shadow.scss +88 -0
  24. data/stylesheets/compass/css3/_box-sizing.scss +21 -0
  25. data/stylesheets/compass/css3/_box.scss +85 -0
  26. data/stylesheets/compass/css3/_columns.scss +212 -0
  27. data/stylesheets/compass/css3/_deprecated-support.scss +272 -0
  28. data/stylesheets/compass/css3/_filter.scss +50 -0
  29. data/stylesheets/compass/css3/_flexbox.scss +156 -0
  30. data/stylesheets/compass/css3/_font-face.scss +48 -0
  31. data/stylesheets/compass/css3/_hyphenation.scss +71 -0
  32. data/stylesheets/compass/css3/_images.scss +152 -0
  33. data/stylesheets/compass/css3/_inline-block.scss +31 -0
  34. data/stylesheets/compass/css3/_opacity.scss +27 -0
  35. data/stylesheets/compass/css3/_pie.scss +1 -0
  36. data/stylesheets/compass/css3/_regions.scss +27 -0
  37. data/stylesheets/compass/css3/_selection.scss +59 -0
  38. data/stylesheets/compass/css3/_shared.scss +5 -0
  39. data/stylesheets/compass/css3/_text-shadow.scss +82 -0
  40. data/stylesheets/compass/css3/_transform.scss +590 -0
  41. data/stylesheets/compass/css3/_transition.scss +190 -0
  42. data/stylesheets/compass/css3/_user-interface.scss +71 -0
  43. data/stylesheets/compass/layout/_grid-background.scss +178 -0
  44. data/stylesheets/compass/layout/_sticky-footer.scss +23 -0
  45. data/stylesheets/compass/layout/_stretching.scss +24 -0
  46. data/stylesheets/compass/reset/_utilities-legacy.scss +135 -0
  47. data/stylesheets/compass/reset/_utilities.scss +142 -0
  48. data/stylesheets/compass/typography/_links.scss +3 -0
  49. data/stylesheets/compass/typography/_lists.scss +4 -0
  50. data/stylesheets/compass/typography/_text.scss +4 -0
  51. data/stylesheets/compass/typography/_units.scss +183 -0
  52. data/stylesheets/compass/typography/_vertical_rhythm.scss +300 -0
  53. data/stylesheets/compass/typography/links/_hover-link.scss +5 -0
  54. data/stylesheets/compass/typography/links/_link-colors.scss +28 -0
  55. data/stylesheets/compass/typography/links/_unstyled-link.scss +7 -0
  56. data/stylesheets/compass/typography/lists/_bullets.scss +34 -0
  57. data/stylesheets/compass/typography/lists/_horizontal-list.scss +63 -0
  58. data/stylesheets/compass/typography/lists/_inline-block-list.scss +50 -0
  59. data/stylesheets/compass/typography/lists/_inline-list.scss +47 -0
  60. data/stylesheets/compass/typography/text/_ellipsis.scss +25 -0
  61. data/stylesheets/compass/typography/text/_force-wrap.scss +12 -0
  62. data/stylesheets/compass/typography/text/_nowrap.scss +2 -0
  63. data/stylesheets/compass/typography/text/_replacement.scss +74 -0
  64. data/stylesheets/compass/utilities/_color.scss +1 -0
  65. data/stylesheets/compass/utilities/_general.scss +6 -0
  66. data/stylesheets/compass/utilities/_links.scss +5 -0
  67. data/stylesheets/compass/utilities/_lists.scss +6 -0
  68. data/stylesheets/compass/utilities/_print.scss +17 -0
  69. data/stylesheets/compass/utilities/_sass.scss +2 -0
  70. data/stylesheets/compass/utilities/_sprites.scss +2 -0
  71. data/stylesheets/compass/utilities/_tables.scss +3 -0
  72. data/stylesheets/compass/utilities/_text.scss +5 -0
  73. data/stylesheets/compass/utilities/color/_brightness.scss +20 -0
  74. data/stylesheets/compass/utilities/color/_contrast.scss +52 -0
  75. data/stylesheets/compass/utilities/general/_clearfix.scss +44 -0
  76. data/stylesheets/compass/utilities/general/_float.scss +38 -0
  77. data/stylesheets/compass/utilities/general/_hacks.scss +65 -0
  78. data/stylesheets/compass/utilities/general/_min.scss +16 -0
  79. data/stylesheets/compass/utilities/general/_reset.scss +2 -0
  80. data/stylesheets/compass/utilities/general/_tabs.scss +1 -0
  81. data/stylesheets/compass/utilities/general/_tag-cloud.scss +18 -0
  82. data/stylesheets/compass/utilities/links/_hover-link.scss +3 -0
  83. data/stylesheets/compass/utilities/links/_link-colors.scss +3 -0
  84. data/stylesheets/compass/utilities/links/_unstyled-link.scss +3 -0
  85. data/stylesheets/compass/utilities/lists/_bullets.scss +3 -0
  86. data/stylesheets/compass/utilities/lists/_horizontal-list.scss +3 -0
  87. data/stylesheets/compass/utilities/lists/_inline-block-list.scss +3 -0
  88. data/stylesheets/compass/utilities/lists/_inline-list.scss +3 -0
  89. data/stylesheets/compass/utilities/sass/_lists.scss +16 -0
  90. data/stylesheets/compass/utilities/sass/_maps.scss +19 -0
  91. data/stylesheets/compass/utilities/sprites/_base.scss +92 -0
  92. data/stylesheets/compass/utilities/sprites/_sprite-img.scss +81 -0
  93. data/stylesheets/compass/utilities/tables/_alternating-rows-and-columns.scss +22 -0
  94. data/stylesheets/compass/utilities/tables/_borders.scss +38 -0
  95. data/stylesheets/compass/utilities/tables/_scaffolding.scss +9 -0
  96. data/stylesheets/compass/utilities/text/_ellipsis.scss +3 -0
  97. data/stylesheets/compass/utilities/text/_nowrap.scss +3 -0
  98. data/stylesheets/compass/utilities/text/_replacement.scss +3 -0
  99. data/templates/ellipsis/ellipsis.sass +9 -0
  100. data/templates/ellipsis/manifest.rb +27 -0
  101. data/templates/ellipsis/xml/ellipsis.xml +14 -0
  102. data/templates/extension/manifest.rb +26 -0
  103. data/templates/extension/stylesheets/main.sass +1 -0
  104. data/templates/extension/templates/project/manifest.rb +2 -0
  105. data/templates/extension/templates/project/screen.sass +2 -0
  106. data/templates/project/USAGE.markdown +32 -0
  107. data/templates/project/ie.sass +6 -0
  108. data/templates/project/manifest.rb +4 -0
  109. data/templates/project/print.sass +6 -0
  110. data/templates/project/screen.sass +7 -0
  111. metadata +113 -10
  112. data/.gitignore +0 -14
  113. data/Gemfile +0 -4
  114. data/LICENSE.txt +0 -22
  115. data/README.md +0 -31
  116. data/Rakefile +0 -9
  117. data/gem_2345.gemspec +0 -25
@@ -0,0 +1 @@
1
+ // This is your framework's main stylesheet. Use it to import all default modules.
@@ -0,0 +1,2 @@
1
+ # Make sure you list all the project template files here in the manifest.
2
+ stylesheet 'screen.sass', :media => 'screen, projection'
@@ -0,0 +1,2 @@
1
+ // This is where you put the contents of the main stylesheet for the user's project.
2
+ // It should import your sass stylesheets and demonstrate how to use them.
@@ -0,0 +1,32 @@
1
+ When no framework is specified, a new compass project is set up with three stylesheets:
2
+
3
+ * screen.sass
4
+ * print.sass
5
+ * ie.sass
6
+
7
+ It is expected that you will link your html to these like so:
8
+
9
+ <head>
10
+ <link href="/stylesheets/screen.css" media="screen, projection"
11
+ rel="stylesheet" type="text/css" />
12
+ <link href="/stylesheets/print.css" media="print"
13
+ rel="stylesheet" type="text/css" />
14
+ <!--[if IE]>
15
+ <link href="/stylesheets/ie.css" media="screen, projection"
16
+ rel="stylesheet" type="text/css" />
17
+ <![endif]-->
18
+ </head>
19
+
20
+ You don't have to use these three stylesheets, they are just a recommendation.
21
+ You can rename them, make new stylesheets, and delete them. Compass will
22
+ happily compile whatever sass files you place into your project.
23
+
24
+ Any folders you create in your source directory with sass files in them will be folders
25
+ that get created with css files in them when compiled.
26
+
27
+ Sass files beginning with an underscore are called partials, they are not directly
28
+ compiled to their own css file. You can use these partials by importing them
29
+ into other stylesheets. This is useful for keeping your stylesheets small and manageable
30
+ and single-focused. It is common to create a file called _base.sass at the top level
31
+ of your stylesheets and to import this to set up project-wide constants and mixins.
32
+
@@ -0,0 +1,6 @@
1
+ /*
2
+ Welcome to Compass. Use this file to write IE specific override styles.
3
+ Import this file using the following HTML or equivalent:
4
+ <!--[if IE]>
5
+ <link href="/stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css" />
6
+ <![endif]-->
@@ -0,0 +1,4 @@
1
+ description "The default project layout."
2
+ stylesheet 'screen.sass', :media => 'screen, projection'
3
+ stylesheet 'print.sass', :media => 'print'
4
+ stylesheet 'ie.sass', :media => 'screen, projection', :condition => "IE"
@@ -0,0 +1,6 @@
1
+ /*
2
+ Welcome to Compass. Use this file to define print styles.
3
+ Import this file using the following HTML or equivalent:
4
+ <link href="/stylesheets/print.css" media="print" rel="stylesheet" type="text/css" />
5
+
6
+
@@ -0,0 +1,7 @@
1
+ /*
2
+ Welcome to Compass.
3
+ In this file you should write your main styles. (or centralize your imports)
4
+ Import this file using the following HTML or equivalent:
5
+ <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" />
6
+
7
+ @import compass/reset
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_2345
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rambo
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2015-12-25 00:00:00 Z
18
+ date: 2016-02-24 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: sass
@@ -107,14 +107,117 @@ extensions: []
107
107
  extra_rdoc_files: []
108
108
 
109
109
  files:
110
- - .gitignore
111
- - Gemfile
112
- - LICENSE.txt
113
- - README.md
114
- - Rakefile
115
- - gem_2345.gemspec
116
110
  - lib/gem_2345.rb
111
+ - lib/gem_2345/import-once.rb
112
+ - lib/gem_2345/import-once/activate.rb
113
+ - lib/gem_2345/import-once/engine.rb
114
+ - lib/gem_2345/import-once/importer.rb
115
+ - lib/gem_2345/import-once/version.rb
117
116
  - lib/gem_2345/version.rb
117
+ - stylesheets/_compass.scss
118
+ - stylesheets/_lemonade.scss
119
+ - stylesheets/compass/_configuration.scss
120
+ - stylesheets/compass/_css3.scss
121
+ - stylesheets/compass/_layout.scss
122
+ - stylesheets/compass/_reset-legacy.scss
123
+ - stylesheets/compass/_reset.scss
124
+ - stylesheets/compass/_support.scss
125
+ - stylesheets/compass/_typography.scss
126
+ - stylesheets/compass/_utilities.scss
127
+ - stylesheets/compass/css3/_animation.scss
128
+ - stylesheets/compass/css3/_appearance.scss
129
+ - stylesheets/compass/css3/_background-clip.scss
130
+ - stylesheets/compass/css3/_background-origin.scss
131
+ - stylesheets/compass/css3/_background-size.scss
132
+ - stylesheets/compass/css3/_border-radius.scss
133
+ - stylesheets/compass/css3/_box-shadow.scss
134
+ - stylesheets/compass/css3/_box-sizing.scss
135
+ - stylesheets/compass/css3/_box.scss
136
+ - stylesheets/compass/css3/_columns.scss
137
+ - stylesheets/compass/css3/_deprecated-support.scss
138
+ - stylesheets/compass/css3/_filter.scss
139
+ - stylesheets/compass/css3/_flexbox.scss
140
+ - stylesheets/compass/css3/_font-face.scss
141
+ - stylesheets/compass/css3/_hyphenation.scss
142
+ - stylesheets/compass/css3/_images.scss
143
+ - stylesheets/compass/css3/_inline-block.scss
144
+ - stylesheets/compass/css3/_opacity.scss
145
+ - stylesheets/compass/css3/_pie.scss
146
+ - stylesheets/compass/css3/_regions.scss
147
+ - stylesheets/compass/css3/_selection.scss
148
+ - stylesheets/compass/css3/_shared.scss
149
+ - stylesheets/compass/css3/_text-shadow.scss
150
+ - stylesheets/compass/css3/_transform.scss
151
+ - stylesheets/compass/css3/_transition.scss
152
+ - stylesheets/compass/css3/_user-interface.scss
153
+ - stylesheets/compass/layout/_grid-background.scss
154
+ - stylesheets/compass/layout/_sticky-footer.scss
155
+ - stylesheets/compass/layout/_stretching.scss
156
+ - stylesheets/compass/reset/_utilities-legacy.scss
157
+ - stylesheets/compass/reset/_utilities.scss
158
+ - stylesheets/compass/typography/_links.scss
159
+ - stylesheets/compass/typography/_lists.scss
160
+ - stylesheets/compass/typography/_text.scss
161
+ - stylesheets/compass/typography/_units.scss
162
+ - stylesheets/compass/typography/_vertical_rhythm.scss
163
+ - stylesheets/compass/typography/links/_hover-link.scss
164
+ - stylesheets/compass/typography/links/_link-colors.scss
165
+ - stylesheets/compass/typography/links/_unstyled-link.scss
166
+ - stylesheets/compass/typography/lists/_bullets.scss
167
+ - stylesheets/compass/typography/lists/_horizontal-list.scss
168
+ - stylesheets/compass/typography/lists/_inline-block-list.scss
169
+ - stylesheets/compass/typography/lists/_inline-list.scss
170
+ - stylesheets/compass/typography/text/_ellipsis.scss
171
+ - stylesheets/compass/typography/text/_force-wrap.scss
172
+ - stylesheets/compass/typography/text/_nowrap.scss
173
+ - stylesheets/compass/typography/text/_replacement.scss
174
+ - stylesheets/compass/utilities/_color.scss
175
+ - stylesheets/compass/utilities/_general.scss
176
+ - stylesheets/compass/utilities/_links.scss
177
+ - stylesheets/compass/utilities/_lists.scss
178
+ - stylesheets/compass/utilities/_print.scss
179
+ - stylesheets/compass/utilities/_sass.scss
180
+ - stylesheets/compass/utilities/_sprites.scss
181
+ - stylesheets/compass/utilities/_tables.scss
182
+ - stylesheets/compass/utilities/_text.scss
183
+ - stylesheets/compass/utilities/color/_brightness.scss
184
+ - stylesheets/compass/utilities/color/_contrast.scss
185
+ - stylesheets/compass/utilities/general/_clearfix.scss
186
+ - stylesheets/compass/utilities/general/_float.scss
187
+ - stylesheets/compass/utilities/general/_hacks.scss
188
+ - stylesheets/compass/utilities/general/_min.scss
189
+ - stylesheets/compass/utilities/general/_reset.scss
190
+ - stylesheets/compass/utilities/general/_tabs.scss
191
+ - stylesheets/compass/utilities/general/_tag-cloud.scss
192
+ - stylesheets/compass/utilities/links/_hover-link.scss
193
+ - stylesheets/compass/utilities/links/_link-colors.scss
194
+ - stylesheets/compass/utilities/links/_unstyled-link.scss
195
+ - stylesheets/compass/utilities/lists/_bullets.scss
196
+ - stylesheets/compass/utilities/lists/_horizontal-list.scss
197
+ - stylesheets/compass/utilities/lists/_inline-block-list.scss
198
+ - stylesheets/compass/utilities/lists/_inline-list.scss
199
+ - stylesheets/compass/utilities/sass/_lists.scss
200
+ - stylesheets/compass/utilities/sass/_maps.scss
201
+ - stylesheets/compass/utilities/sprites/_base.scss
202
+ - stylesheets/compass/utilities/sprites/_sprite-img.scss
203
+ - stylesheets/compass/utilities/tables/_alternating-rows-and-columns.scss
204
+ - stylesheets/compass/utilities/tables/_borders.scss
205
+ - stylesheets/compass/utilities/tables/_scaffolding.scss
206
+ - stylesheets/compass/utilities/text/_ellipsis.scss
207
+ - stylesheets/compass/utilities/text/_nowrap.scss
208
+ - stylesheets/compass/utilities/text/_replacement.scss
209
+ - templates/ellipsis/ellipsis.sass
210
+ - templates/ellipsis/manifest.rb
211
+ - templates/ellipsis/xml/ellipsis.xml
212
+ - templates/extension/manifest.rb
213
+ - templates/extension/stylesheets/main.sass
214
+ - templates/extension/templates/project/manifest.rb
215
+ - templates/extension/templates/project/screen.sass
216
+ - templates/project/USAGE.markdown
217
+ - templates/project/ie.sass
218
+ - templates/project/manifest.rb
219
+ - templates/project/print.sass
220
+ - templates/project/screen.sass
118
221
  homepage: ""
119
222
  licenses:
120
223
  - MIT
data/.gitignore DELETED
@@ -1,14 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- *.bundle
11
- *.so
12
- *.o
13
- *.a
14
- mkmf.log
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in gem_2345.gemspec
4
- gemspec
data/LICENSE.txt DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2015 Rambo
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md DELETED
@@ -1,31 +0,0 @@
1
- # Gem2345
2
-
3
- TODO: Write a gem description
4
-
5
- ## Installation
6
-
7
- Add this line to your application's Gemfile:
8
-
9
- ```ruby
10
- gem 'gem_2345'
11
- ```
12
-
13
- And then execute:
14
-
15
- $ bundle
16
-
17
- Or install it yourself as:
18
-
19
- $ gem install gem_2345
20
-
21
- ## Usage
22
-
23
- TODO: Write usage instructions here
24
-
25
- ## Contributing
26
-
27
- 1. Fork it ( https://github.com/[my-github-username]/gem_2345/fork )
28
- 2. Create your feature branch (`git checkout -b my-new-feature`)
29
- 3. Commit your changes (`git commit -am 'Add some feature'`)
30
- 4. Push to the branch (`git push origin my-new-feature`)
31
- 5. Create a new Pull Request
data/Rakefile DELETED
@@ -1,9 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rake/testtask"
3
-
4
- Rake::TestTask.new do |t|
5
- t.libs << "test"
6
- t.libs << "lib"
7
- t.test_files = FileList['test/**/*_test.rb']
8
- t.verbose = true
9
- end
data/gem_2345.gemspec DELETED
@@ -1,25 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'gem_2345/import-once/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "gem_2345"
8
- spec.version = Gem2345::ImportOnce::VERSION
9
- spec.authors = ["Rambo"]
10
- spec.email = ["lx_126@hotmail.com"]
11
- spec.description = %q{Changes the behavior of Sass's @import directive to only import a file once.}
12
- spec.summary = %q{Speed up your Sass compilation by making @import only import each file once.}
13
- spec.homepage = ""
14
- spec.license = "MIT"
15
-
16
- spec.files = `git ls-files #{File.dirname(__FILE__)}`.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"]
20
- spec.add_dependency "sass", ">= 3.2", "< 3.5"
21
- spec.add_development_dependency "bundler", "~> 1.7"
22
- spec.add_development_dependency "diff-lcs"
23
- spec.add_development_dependency "rake", "~> 10.0"
24
- spec.add_development_dependency "sass-globbing"
25
- end