prism-rails 1.6.0.1 → 1.6.0.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
  SHA1:
3
- metadata.gz: 115d34618a66e2ae5facadee40baef80e6e264d1
4
- data.tar.gz: 3af00fc130c2fea4e836cd3f72c135f1f2868ed4
3
+ metadata.gz: 43094b808cd7edec575af4caf9120fd60904ccd2
4
+ data.tar.gz: 5e83274a162cba857212136b1e4f800840239c3f
5
5
  SHA512:
6
- metadata.gz: fb30cb079017b13bcb0917539f5350fe963975e158de866ba2bab8df2c258d0696fef9f2a8be2ee3db920d07913bb1724b054c3ced1c55d48548e6074d23c0c2
7
- data.tar.gz: bacd347e7e35878502093d527fb913a729819dfff4a6f8f287aeeb62604e4e3a48ced6a8a6e24254d467e1091e3980c67e5ffa732f44ee8053ea1dfa574b5b92
6
+ metadata.gz: 6040d21fa3ef8a18da4008b6e8df98fb27a39d96628ceaceeb1898b9697c7e591feaa6089335fce4f69c505d7b5d8434a9a3172db9a1d226544111a757a08d4d
7
+ data.tar.gz: a8d5e519e0c71b3d50af9ab012c7ec01b23bc4ab0c49bdf811caeac2b9a67385097656858541fd615255c3c8507d89d2db5db4b7d30ff1626e1d4968ff1b98cf
@@ -1,7 +1,9 @@
1
1
  # Prism-rails Changelog
2
- ## 1.6.0 (2017-01-02)
3
- ### Prism.js changes see [Prism.js changelog](https://github.com/PrismJS/prism/blob/gh-pages/CHANGELOG.md)
2
+ For Prism.js changes see [Prism.js changelog](https://github.com/PrismJS/prism/blob/gh-pages/CHANGELOG.md)
3
+
4
+ ## 1.6.0.2 (2017-01-03)
5
+ * Support for rails 4
4
6
 
5
- ### Gem changes
7
+ ## 1.6.0 (2017-01-02)
6
8
  * Require all languages in one file
7
9
  * Sub directory for plugins js and css
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # prism-rails
1
+ # prism-rails 1.5.1
2
2
 
3
- prism-rails wraps the Prism.js library in a rails engine for simple use with the asset pipeline
3
+ prism-rails wraps the [Prism.js](https://github.com/PrismJS/prism) library in a rails engine for simple use with the asset pipeline
4
4
 
5
5
  Prism is a lightweight, robust, elegant syntax highlighting library.
6
6
 
@@ -87,8 +87,6 @@ Every attempt is made to mirror the currently shipping Prism.js version number w
87
87
 
88
88
  Bug reports and pull requests are welcome on GitHub at https://github.com/acharlop/prism-rails.
89
89
 
90
-
91
90
  ## License
92
91
 
93
92
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
94
-
@@ -1,3 +1,3 @@
1
1
  module Prism
2
- VERSION = "1.6.0.1"
2
+ VERSION = "1.6.0.2"
3
3
  end
@@ -8,7 +8,7 @@ Prism.languages.apl = {
8
8
  alias: 'function'
9
9
  },
10
10
  'constant': /[⍬⌾#⎕⍞]/,
11
- 'function': /[-+×÷⌈⌊∣|⍳?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,
11
+ 'function': /[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,
12
12
  'monadic-operator': {
13
13
  pattern: /[\\\/⌿⍀¨⍨⌶&∥]/,
14
14
  alias: 'operator'
@@ -26,4 +26,4 @@ Prism.languages.apl = {
26
26
  pattern: /[{}⍺⍵⍶⍹∇⍫:]/,
27
27
  alias: 'builtin'
28
28
  }
29
- };
29
+ };
@@ -0,0 +1,27 @@
1
+ div.prism-show-language {
2
+ position: relative;
3
+ }
4
+
5
+ div.prism-show-language > div.prism-show-language-label {
6
+ color: black;
7
+ background-color: #CFCFCF;
8
+ display: inline-block;
9
+ position: absolute;
10
+ bottom: auto;
11
+ left: auto;
12
+ top: 0;
13
+ right: 0;
14
+ width: auto;
15
+ height: auto;
16
+ font-size: 0.9em;
17
+ border-radius: 0 0 0 5px;
18
+ padding: 0 0.5em;
19
+ text-shadow: none;
20
+ z-index: 1;
21
+ box-shadow: none;
22
+ -webkit-transform: none;
23
+ -moz-transform: none;
24
+ -ms-transform: none;
25
+ -o-transform: none;
26
+ transform: none;
27
+ }
@@ -0,0 +1,58 @@
1
+ pre.code-toolbar {
2
+ position: relative;
3
+ }
4
+
5
+ pre.code-toolbar > .toolbar {
6
+ position: absolute;
7
+ top: .3em;
8
+ right: .2em;
9
+ transition: opacity 0.3s ease-in-out;
10
+ opacity: 0;
11
+ }
12
+
13
+ pre.code-toolbar:hover > .toolbar {
14
+ opacity: 1;
15
+ }
16
+
17
+ pre.code-toolbar > .toolbar .toolbar-item {
18
+ display: inline-block;
19
+ }
20
+
21
+ pre.code-toolbar > .toolbar a {
22
+ cursor: pointer;
23
+ }
24
+
25
+ pre.code-toolbar > .toolbar button {
26
+ background: none;
27
+ border: 0;
28
+ color: inherit;
29
+ font: inherit;
30
+ line-height: normal;
31
+ overflow: visible;
32
+ padding: 0;
33
+ -webkit-user-select: none; /* for button */
34
+ -moz-user-select: none;
35
+ -ms-user-select: none;
36
+ }
37
+
38
+ pre.code-toolbar > .toolbar a,
39
+ pre.code-toolbar > .toolbar button,
40
+ pre.code-toolbar > .toolbar span {
41
+ color: #bbb;
42
+ font-size: .8em;
43
+ padding: 0 .5em;
44
+ background: #f5f2f0;
45
+ background: rgba(224, 224, 224, 0.2);
46
+ box-shadow: 0 2px 0 0 rgba(0,0,0,0.2);
47
+ border-radius: .5em;
48
+ }
49
+
50
+ pre.code-toolbar > .toolbar a:hover,
51
+ pre.code-toolbar > .toolbar a:focus,
52
+ pre.code-toolbar > .toolbar button:hover,
53
+ pre.code-toolbar > .toolbar button:focus,
54
+ pre.code-toolbar > .toolbar span:hover,
55
+ pre.code-toolbar > .toolbar span:focus {
56
+ color: inherit;
57
+ text-decoration: none;
58
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prism-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0.1
4
+ version: 1.6.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Avi Charlop
@@ -14,44 +14,22 @@ dependencies:
14
14
  name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '5.0'
27
- - !ruby/object:Gem::Dependency
28
- name: rails
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
19
+ version: '4.2'
20
+ - - "<"
32
21
  - !ruby/object:Gem::Version
33
- version: '5.0'
34
- type: :development
22
+ version: '6'
23
+ type: :runtime
35
24
  prerelease: false
36
25
  version_requirements: !ruby/object:Gem::Requirement
37
26
  requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '5.0'
41
- - !ruby/object:Gem::Dependency
42
- name: rspec
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
27
+ - - ">="
46
28
  - !ruby/object:Gem::Version
47
- version: '3.5'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
29
+ version: '4.2'
30
+ - - "<"
53
31
  - !ruby/object:Gem::Version
54
- version: '3.5'
32
+ version: '6'
55
33
  description: |2
56
34
  Prism is a lightweight syntax highlighter.
57
35
  This gem allows for its simple use with the rails asset pipeline
@@ -245,8 +223,10 @@ files:
245
223
  - vendor/assets/stylesheets/prism-plugin/prism-unescaped-markup.css
246
224
  - vendor/assets/stylesheets/prism-plugin/prism-wpd.css
247
225
  - vendor/assets/stylesheets/prism-pojoaque.css
226
+ - vendor/assets/stylesheets/prism-show-language.css
248
227
  - vendor/assets/stylesheets/prism-solarizedlight.css
249
228
  - vendor/assets/stylesheets/prism-tomorrow.css
229
+ - vendor/assets/stylesheets/prism-toolbar.css
250
230
  - vendor/assets/stylesheets/prism-twilight.css
251
231
  - vendor/assets/stylesheets/prism-vs.css
252
232
  - vendor/assets/stylesheets/prism-xonokai.css
@@ -263,12 +243,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
263
243
  requirements:
264
244
  - - ">="
265
245
  - !ruby/object:Gem::Version
266
- version: '0'
246
+ version: 1.9.3
267
247
  required_rubygems_version: !ruby/object:Gem::Requirement
268
248
  requirements:
269
249
  - - ">="
270
250
  - !ruby/object:Gem::Version
271
- version: '0'
251
+ version: 1.3.6
272
252
  requirements: []
273
253
  rubyforge_project:
274
254
  rubygems_version: 2.5.1