ethosstyles 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7b9eae5070ab2dd1d33c5a2e24c11638a571f3b8
4
+ data.tar.gz: 8899bd417a7e9bd64679e07f02ce42d01bff6831
5
+ SHA512:
6
+ metadata.gz: f3b759dc96cc77ed55b4d5554c39d822145141162b43213cfc81ce50aec8c12d12649f6046515c87609e5b9b0abd08c07a389a62c88f32ef03d96a78828268d7
7
+ data.tar.gz: f966f32fe03f697ab9b8daceaecb23d8e6f3740dedc63e10286f2f11ec15293f1e451e75d8e15faa0ab49e9c75494cc996cfa188c0d540af3f4e25ae56a49f80
data/.gitignore ADDED
@@ -0,0 +1,7 @@
1
+ _site
2
+ .DS_store
3
+ .sass-cache
4
+ *gem
5
+ *swp
6
+ Gemfile.lock
7
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in sass-mixins.gemspec
4
+ gemspec
data/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # Ethos Styles
2
+
3
+ These are Ethos's main styles.
4
+
5
+ Note: These are foundational styles, and should be edited sparingly. You can still add styles to Moonbeam and OrCA in the `stylesheets` directories.
6
+
7
+ ## Edit Along with Moonbeam
8
+ To develop this gem locally on Moonbeam:
9
+
10
+ 1. Clone this repo to your computer.
11
+
12
+ 2. Replace Github path with file path in Gemfile:
13
+
14
+ # gem "ethosstyles", :git => "https://github.com/adobe-platform/ethosstyles.git"
15
+ gem "ethosstyles", :path => "/usr/ethosstyles"
16
+
17
+ 3. Add directory to `docker-compose.yml` under volumes within web:
18
+
19
+ web:
20
+ ...
21
+ volumes:
22
+ ...
23
+ - ../../ethosstyles:/usr/ethosstyles
data/Rakefile ADDED
@@ -0,0 +1,9 @@
1
+ # encoding: utf-8
2
+ require 'rubygems'
3
+ require 'bundler'
4
+ require 'cucumber/rake/task'
5
+
6
+ Bundler::GemHelper.install_tasks
7
+ Cucumber::Rake::Task.new
8
+
9
+ task :default => :cucumber
@@ -0,0 +1 @@
1
+ @import 'settings/variables';
@@ -0,0 +1,3 @@
1
+ body {
2
+ // background-color: blue;
3
+ }
@@ -0,0 +1,36 @@
1
+ //
2
+ // Colors
3
+ // https://davidwalsh.name/sass-color-variables-dont-suck
4
+ //
5
+
6
+ $white: #ffffff;
7
+ $black: #000000;
8
+
9
+ $charcoal: #191919;
10
+ $slate: #777777;
11
+ $stormy: #c0c0c0;
12
+ $mercury: #e8e8e8;
13
+ $cloudy: #dadada;
14
+ $prewhite: #f3f3f3;
15
+
16
+ $gold: #d2c53b;
17
+ $lemon: #ffea00;
18
+ $sunshine: #fffde1;
19
+
20
+ $green: #04ac00;
21
+ $mint: #e7f9e6;
22
+
23
+ $red: #d9534f;
24
+
25
+ $navy: #002c82;
26
+ $blue-bright: #0057ff;
27
+ $periwinkle: #bdd4ff;
28
+ $baby-blue: #e6efff;
29
+ $powder: #f8fbff;
30
+
31
+
32
+ //
33
+ // Other Variables
34
+ //
35
+
36
+ $border-radius: 3px;
@@ -0,0 +1,27 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "ethosstyles/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "ethosstyles"
7
+ s.version = Ethosstyles::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Ethos"]
10
+ s.email = ["mabell@adobe.com"]
11
+ s.homepage = "https://github.com/adobe-platform/ethosstyles"
12
+ s.summary = "Ethos Styles"
13
+ s.description = "Ethos Styles"
14
+
15
+ s.rubyforge_project = "ethosstyles"
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
+ s.require_paths = ["lib"]
21
+
22
+ s.add_dependency('sass', '~> 3.2')
23
+ s.add_dependency('thor')
24
+
25
+ s.add_development_dependency('aruba', '~> 0.4')
26
+ s.add_development_dependency('rake')
27
+ end
@@ -0,0 +1,27 @@
1
+ # CodeKit needs relative paths
2
+ dir = File.dirname(__FILE__)
3
+ $LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir)
4
+
5
+ require "ethosstyles/generator"
6
+
7
+ unless defined?(Sass)
8
+ require 'sass'
9
+ end
10
+
11
+ module Ethosstyles
12
+ if defined?(Rails) && defined?(Rails::Engine)
13
+ class Engine < ::Rails::Engine
14
+ require 'ethosstyles/engine'
15
+ end
16
+
17
+ module Rails
18
+ class Railtie < ::Rails::Railtie
19
+ rake_tasks do
20
+ load "tasks/install.rake"
21
+ end
22
+ end
23
+ end
24
+ else
25
+ Sass.load_paths << File.expand_path("../../app/assets/stylesheets", __FILE__)
26
+ end
27
+ end
@@ -0,0 +1,5 @@
1
+ module Ethosstyles
2
+ class Engine < Rails::Engine
3
+ # auto wire
4
+ end
5
+ end
@@ -0,0 +1,80 @@
1
+ require 'ethosstyles/version'
2
+ require "fileutils"
3
+ require 'thor'
4
+
5
+ module Ethosstyles
6
+ class Generator < Thor
7
+ map ['-v', '--version'] => :version
8
+
9
+ desc 'install', 'Install Ethosstyles into your project'
10
+ method_options :path => :string, :force => :boolean
11
+ def install
12
+ if ethosstyles_files_already_exist? && !options[:force]
13
+ puts "Ethosstyles files already installed, doing nothing."
14
+ else
15
+ install_files
16
+ puts "Ethosstyles files installed to #{install_path}/"
17
+ end
18
+ end
19
+
20
+ desc 'update', 'Update Ethosstyles'
21
+ method_options :path => :string
22
+ def update
23
+ if ethosstyles_files_already_exist?
24
+ remove_ethosstyles_directory
25
+ install_files
26
+ puts "Ethosstyles files updated."
27
+ else
28
+ puts "No existing ethosstyles installation. Doing nothing."
29
+ end
30
+ end
31
+
32
+ desc 'version', 'Show Ethosstyles version'
33
+ def version
34
+ say "Ethosstyles #{Ethosstyles::VERSION}"
35
+ end
36
+
37
+ private
38
+
39
+ def ethosstyles_files_already_exist?
40
+ install_path.exist?
41
+ end
42
+
43
+ def install_path
44
+ @install_path ||= if options[:path]
45
+ Pathname.new(File.join(options[:path], 'ethosstyles'))
46
+ else
47
+ Pathname.new('ethosstyles')
48
+ end
49
+ end
50
+
51
+ def install_files
52
+ make_install_directory
53
+ copy_in_scss_files
54
+ end
55
+
56
+ def remove_ethosstyles_directory
57
+ FileUtils.rm_rf("ethosstyles")
58
+ end
59
+
60
+ def make_install_directory
61
+ FileUtils.mkdir_p(install_path)
62
+ end
63
+
64
+ def copy_in_scss_files
65
+ FileUtils.cp_r(all_stylesheets, install_path)
66
+ end
67
+
68
+ def all_stylesheets
69
+ Dir["#{stylesheets_directory}/*"]
70
+ end
71
+
72
+ def stylesheets_directory
73
+ File.join(top_level_directory, "app", "assets", "stylesheets")
74
+ end
75
+
76
+ def top_level_directory
77
+ File.dirname(File.dirname(File.dirname(__FILE__)))
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,3 @@
1
+ module Ethosstyles
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,111 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ethosstyles
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Ethos
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-07-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sass
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '3.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '3.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: thor
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: aruba
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '0.4'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '0.4'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: Ethos Styles
70
+ email:
71
+ - mabell@adobe.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - .gitignore
77
+ - Gemfile
78
+ - README.md
79
+ - Rakefile
80
+ - app/assets/stylesheets/_ethosstyles.scss
81
+ - app/assets/stylesheets/settings/_test.scss
82
+ - app/assets/stylesheets/settings/_variables.scss
83
+ - ethosstyles.gemspec
84
+ - lib/ethosstyles.rb
85
+ - lib/ethosstyles/engine.rb
86
+ - lib/ethosstyles/generator.rb
87
+ - lib/ethosstyles/version.rb
88
+ homepage: https://github.com/adobe-platform/ethosstyles
89
+ licenses: []
90
+ metadata: {}
91
+ post_install_message:
92
+ rdoc_options: []
93
+ require_paths:
94
+ - lib
95
+ required_ruby_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ required_rubygems_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - '>='
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ requirements: []
106
+ rubyforge_project: ethosstyles
107
+ rubygems_version: 2.0.14.1
108
+ signing_key:
109
+ specification_version: 4
110
+ summary: Ethos Styles
111
+ test_files: []