mitlibraries-theme 0.3.1.pre → 0.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51ccd7dceba8970e30936dad8c98e16ad836e1ff59b841af40532ccd7b17dfa7
4
- data.tar.gz: 6d9c67a968beac4ad5a56dae3a1f8196da636121048aeb514760b52f7ff4a57b
3
+ metadata.gz: 9d854bc8035b157fa401415ebfb21b89db4969e80898af1214ef8df27aeef1db
4
+ data.tar.gz: caf249b190de4f5f9831fecaba75cee098760dcd334eb32979e673c1d141379e
5
5
  SHA512:
6
- metadata.gz: 0ad5c76d64b116769e808cc7879b285965584a9bd27abf3e2f3fb24d3b13b8d5acc2a1ef88d73ab16ffaaa41f605f3d843ca52c02315432b18dcfca5bce449ad
7
- data.tar.gz: 82f0bba19a699cf0e77506a0414a9db7665b38b40d2cf22f9a2933f583189cd13547092ce095950af4e600134f41f80cd8596356caf099c418cc7cdf9d1bbcbd
6
+ metadata.gz: f45618127822489a80912760ae58b5bfa2932c4661e0a32a7c53606938f2757a03f4666d1c0483b713d3d63323eb81baed02a83421d22f7309b6705e3d733314
7
+ data.tar.gz: c5ad9362150f30b578d55907ccf42702a810c876bcf826a6276472cf03627928416ca8d68e320970800f3b88c1d12e13cd0e498ce4eda43d7a83f604c5fd89e7
data/Makefile ADDED
@@ -0,0 +1,56 @@
1
+ .PHONY: help fetch update cleanup dist publish
2
+ SHELL=/bin/bash
3
+ GEMSPEC=$(shell ls *.gemspec | head -1)
4
+ VERSION=$(shell ruby -e 'puts Gem::Specification::load("$(GEMSPEC)").version')
5
+ PROJECT=$(shell ruby -e 'puts Gem::Specification.load("$(GEMSPEC)").name')
6
+ GEM=$(PROJECT)-$(VERSION).gem
7
+
8
+ help: ## Print this message
9
+ @awk 'BEGIN { FS = ":.*##"; print "Usage: make <target>\n\nTargets:" } \
10
+ /^[-_[:alpha:]]+:.?*##/ { printf " %-15s%s\n", $$1, $$2 }' $(MAKEFILE_LIST)
11
+
12
+ fetch: clean ## Grab latest from theme repo (auto runs clean first)
13
+ mkdir -p tmp
14
+ curl -o tmp/assets.zip https://codeload.github.com/MITLibraries/mitlib-style/zip/master
15
+ unzip -o -d tmp tmp/assets.zip
16
+
17
+ update: fetch ## Synchronize latest (auto runs clean and fetch first)
18
+ # cleanup targets first in case assets were removed
19
+ rm -rf vendor/assets/images/
20
+ rm -rf vendor/assets/stylesheets/
21
+
22
+ mkdir vendor/assets/images/
23
+ mkdir vendor/assets/stylesheets/
24
+
25
+ cp -R tmp/mitlib-style-master/_assets/i/* vendor/assets/images
26
+ cp -R tmp/mitlib-style-master/_assets/sass/* vendor/assets/stylesheets
27
+
28
+ rm -rf vendor/assets/stylesheets/apps/
29
+ rm -f vendor/assets/stylesheets/ebooks-main.scss
30
+ rm -f vendor/assets/stylesheets/guide-helper.scss
31
+ rm -f vendor/assets/stylesheets/quicksubmit.sass
32
+
33
+ # We need to double $ so make doesn't think it's a variable and escape the $ for bash. Hence \$$.
34
+ sed -i '' "s+url('#{\$$image-path}/vi-shape7-tp.svg')+image-url('vi-shape7-tp.svg')+g" vendor/assets/stylesheets/elements/*.scss
35
+
36
+ @tput setaf 2
37
+ @tput bold
38
+ @echo "Assets updated. Make sure to update version in:"
39
+ @echo " lib/mitlibraries/theme/version.rb"
40
+ @echo "before building with 'make dist'"
41
+ @tput sgr0
42
+
43
+ clean: ## Delete downloaded zip and extracted files
44
+ rm -f tmp/assets.zip
45
+ rm -rf tmp/mitlib-style-master
46
+
47
+ dist: ## Build the gem from the current gemspec
48
+ gem build mitlibraries-theme.gemspec
49
+ @tput setaf 2
50
+ @tput bold
51
+ @echo "Finished building gem. To test locally add to your project Gemfile:"
52
+ @echo " gem 'mitlibraries-theme', path: '$(shell pwd)'"
53
+ @tput sgr0
54
+
55
+ publish: ## Publish the gem version defined in the gemspec
56
+ gem push "$(GEM)"
data/README.md CHANGED
@@ -79,13 +79,13 @@ Building and publishing this gem is handled via the `Makefile`.
79
79
 
80
80
  Run `make help` for details.
81
81
 
82
- If your goal is to fetch assets from the style repo and publish the changes,
83
- this would get you there:
84
- - `make fetch_assets`
85
- - `make update_assets`
82
+ If your goal is to fetch the latest assets from the style repo and publish the
83
+ changes, this would get you there:
84
+ - `make update`
86
85
  - manually update the version in `lib/mitlibraries/theme/version.rb`
87
86
  - `make dist`
88
87
  - test the gem in a local version of a site that uses it with the info the previous command provided on completion
88
+ - commit and PR
89
89
  - `make publish`
90
90
 
91
91
  ## Contributing
@@ -1,5 +1,5 @@
1
1
  module Mitlibraries
2
2
  module Theme
3
- VERSION = '0.3.1.pre'.freeze
3
+ VERSION = '0.3.2'.freeze
4
4
  end
5
5
  end
Binary file
@@ -7,7 +7,7 @@
7
7
  }
8
8
 
9
9
  .wrap-footer {
10
- background: $black image-url("vi-shape7-tp.svg") no-repeat 10% center;
10
+ background: $black image-url('vi-shape7-tp.svg') no-repeat 10% center;
11
11
 
12
12
  a {
13
13
  @extend %link;
@@ -61,7 +61,7 @@
61
61
  background: $white none repeat scroll 0 0;
62
62
 
63
63
  path {
64
- fill: $gray-d1;
64
+ fill: $gray-d1;
65
65
  }
66
66
  }
67
67
  }
@@ -26,7 +26,7 @@
26
26
  }
27
27
 
28
28
  .wrap-header {
29
- background: $black image-url("vi-shape7-tp.svg") no-repeat 0 65%;
29
+ background: $black image-url('vi-shape7-tp.svg') no-repeat 0 65%;
30
30
 
31
31
  .logo-mit-lib {
32
32
  display: inline-block;
@@ -90,3 +90,4 @@
90
90
  padding-top: 7px;
91
91
  padding-bottom: 5px;
92
92
  }
93
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mitlibraries-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1.pre
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Prevost
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-25 00:00:00.000000000 Z
11
+ date: 2019-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -106,6 +106,7 @@ files:
106
106
  - CODE_OF_CONDUCT.md
107
107
  - Gemfile
108
108
  - LICENSE.txt
109
+ - Makefile
109
110
  - README.md
110
111
  - Rakefile
111
112
  - app/helpers/link_helper.rb
@@ -159,9 +160,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
159
160
  version: '0'
160
161
  required_rubygems_version: !ruby/object:Gem::Requirement
161
162
  requirements:
162
- - - ">"
163
+ - - ">="
163
164
  - !ruby/object:Gem::Version
164
- version: 1.3.1
165
+ version: '0'
165
166
  requirements: []
166
167
  rubyforge_project:
167
168
  rubygems_version: 2.7.6