revelry_core 0.1.6.2 → 0.1.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d5359d01991653812104235cdfcb8a1ad38bec6
4
- data.tar.gz: de5cb5f015612741e9655dbd598f4109b598ba5a
3
+ metadata.gz: 919b211ad222e019dab6ef8db5b7da69123c3905
4
+ data.tar.gz: 71ca41de9a1e92870ab5258829ffe48f3f9733eb
5
5
  SHA512:
6
- metadata.gz: 20faafa6981091e373555aa38fbeda226b48cd8225fcf2cf1861b6fea796ab101de3c988e503ab0b2291278df0e541b0c46ca7c9b07b047046715a654533e366
7
- data.tar.gz: c7e7771035cc5e70ca57f9ee40d922ef23af7e7d5075bb047a6440d7970765707c7292c92d57fb0c7c5c0d94fbc81c367e037db9fe5800a786c2b65315e333f4
6
+ metadata.gz: 7af42312e5b5c93f4140d86ffcf6bd5694188d22f2dba54fffe335a9a4dedc6077ac80093ac9364bcd12d5853be4aec4cedf49a173c83fd99b20006b02bd3561
7
+ data.tar.gz: 4d099b1c74da5c510d28828beeb6d37a96636da47b861b6508164a7eab0635427bf0cee4b8841185a37333fe44d5a03e3007c6e7d3491b9195ba7c641a8391e0
@@ -3,7 +3,7 @@ Rev.registerComponent 'Router',
3
3
 
4
4
  statics:
5
5
  # Dump of the route table from the rails application
6
- routesFromRails: <%= Rails.application.routes.routes.select{ |r| r.verb.match('GET') }.sort { |r| r.precedence }.map { |x| [x.path.ast.to_s.gsub(/\A\//,''), x.defaults] }.to_json %>
6
+ routesFromRails: <%= Rails.application.routes.routes.select{ |r| r.verb.match('GET') }.map { |x| [x.path.ast.to_s.gsub(/\A\//,''), x.defaults] }.to_json %>
7
7
 
8
8
  # Convert 'defaults' from Rails route, which looks like
9
9
  # { controller: 'foo', action: 'new' } into a path as array like this:
@@ -32,7 +32,7 @@ Rev.registerComponent 'Router',
32
32
  _(Rev.Components.Router.routesFromRails).each (pair)=>
33
33
  [key, value] = pair
34
34
  return unless value.controller && value.action
35
- routerConfig.routes[key] ||= Rev.Components.Router.routeFunctionName(value)
35
+ routerConfig.routes[key] ?= Rev.Components.Router.routeFunctionName(value)
36
36
  routerConfig
37
37
 
38
38
  ### INSTANCE METHODS ###
@@ -75,6 +75,7 @@ Rev.registerComponent 'Router',
75
75
  return (data, textStatus, xhr)=>
76
76
  try
77
77
  @setState path: templatePath, options: JSON.parse(data)
78
+ window.scrollTo 0, 0
78
79
  catch err
79
80
  @onPropsFetchFailure()
80
81
 
@@ -3,10 +3,10 @@ Rev.registerComponent 'Button',
3
3
  buildClassName: ->
4
4
  className =
5
5
  RevButton: true
6
- ["tiny", "small", "medium", "large", "alert", "disabled", "secondary", "success"].forEach (propName) =>
6
+ ["tiny", "small", "medium", "large", "alert", "disabled", "secondary", "success", "expand"].forEach (propName) =>
7
7
  className[propName] = true if @props[propName]
8
8
  @cx className
9
9
 
10
10
  render: ->
11
- props = @getPropsWithout "tiny", "small", "medium", "large", "alert", "secondary", "success"
11
+ props = @getPropsWithout "tiny", "small", "medium", "large", "alert", "secondary", "success", "expand"
12
12
  <button {...props} className={@buildClassName()} />
@@ -0,0 +1,3 @@
1
+ Rev.registerComponent 'CodeBlock',
2
+ render: ->
3
+ <pre className={@classAdd 'RevCodeBlock': true}>{@props.children}</pre>
@@ -0,0 +1,3 @@
1
+ .RevCodeBlock {
2
+ overflow-x: auto;
3
+ }
@@ -1,5 +1,5 @@
1
1
  module Revelry
2
2
  module Core
3
- VERSION = "0.1.6.2"
3
+ VERSION = "0.1.6.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: revelry_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6.2
4
+ version: 0.1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Revelry Labs, LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-22 00:00:00.000000000 Z
11
+ date: 2015-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -338,6 +338,7 @@ files:
338
338
  - app/assets/javascripts/revelry/ui/tabs/TabBlock.js.cjsx
339
339
  - app/assets/javascripts/revelry/ui/tabs/Tabs.js.cjsx
340
340
  - app/assets/javascripts/revelry/ui/tabs/TabsAccordion.js.cjsx
341
+ - app/assets/javascripts/revelry/ui/visuals/CodeBlock.js.cjsx
341
342
  - app/assets/javascripts/revelry/ui/visuals/ProgressBar.js.cjsx
342
343
  - app/assets/javascripts/server.js
343
344
  - app/assets/stylesheets/revelry.scss
@@ -366,6 +367,7 @@ files:
366
367
  - app/assets/stylesheets/revelry/ui/tabs/TabBlock.scss
367
368
  - app/assets/stylesheets/revelry/ui/tabs/Tabs.scss
368
369
  - app/assets/stylesheets/revelry/ui/tabs/TabsAccordion.scss
370
+ - app/assets/stylesheets/revelry/ui/visuals/CodeBlock.scss
369
371
  - app/assets/stylesheets/revelry/ui/visuals/ProgressBar.scss
370
372
  - app/controllers/revelry_controller.rb
371
373
  - app/views/layouts/application.html.erb