flexite 0.0.16 → 0.0.17

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: efc709b3da7ed72524876cc7e351a0edc22e9a23
4
- data.tar.gz: b1d99adcd30d20b536debc445b17cb3289c9728f
3
+ metadata.gz: b4924a99e5d9b13e8cb680a5fb424fd7e139ca11
4
+ data.tar.gz: 8834f34d427ee79108d141bce2d580a86329b372
5
5
  SHA512:
6
- metadata.gz: c0bae0198ff1070d3073598a975cf9c41b4d2ac5581732561267e17b6d0cb2cf46efa2ebb21a5cb95fcb8f6a01ac228b30e6653323c48d9f9916fd6c7861bac8
7
- data.tar.gz: c215281f58aa8cf03abef0740380125b470a050442792c28fb71f88bbffbe7f2c22d87dbb30be41edf9b8de4c3e8c82c0ec9e3e3f98a9f727fbb877372d5d1ac
6
+ metadata.gz: ccbf8920a200544453e5017ffd6e6798c2b218feed83e521e497ffb324ac3174cc8f9f96535beba702b0f2107b8a0008954a5d9b34085ac333e0026cce5649b9
7
+ data.tar.gz: b44fc1eb11e83685aebaf2979a0ef49851b7ebc90593bf630d238ff1a242e043ea6715082cd0aa56bec99b9fbda813040bfd5fdfc59fe17a99b91ecb6c04bd85
@@ -10,15 +10,6 @@ module Flexite
10
10
  end
11
11
 
12
12
  def stage_select
13
- Rails.logger.debug { Flexite.config.stages }
14
- flexite_config = File.join(Rails.root, 'config', 'flexite.yml')
15
- Rails.logger.debug("CONFIG EXIST?: #{File.exist?(flexite_config)}")
16
-
17
- if File.exist?(flexite_config)
18
- stage_config = YAML.load_file(flexite_config)
19
- Rails.logger.debug { stage_config }
20
- end
21
-
22
13
  select_tag :stage, options_for_select(Flexite.config.stages), class: 'form-control'
23
14
  end
24
15
  end
@@ -16,7 +16,7 @@ module Flexite
16
16
  def prettified
17
17
  case @type.to_sym
18
18
  when :-, :+
19
- JSON.pretty_generate(@changes.first)
19
+ JSON.pretty_generate(@changes.first) rescue @changes.first
20
20
  else
21
21
  @changes
22
22
  end
@@ -2,7 +2,7 @@ module Flexite
2
2
  class Diff
3
3
  class Token
4
4
  def initialize(string_token)
5
- @token = string_token.encode(Encoding::UTF_8)
5
+ @token = string_token
6
6
  end
7
7
 
8
8
  def valid?
@@ -0,0 +1,21 @@
1
+ en-US:
2
+ models:
3
+ arr_entry: 'array'
4
+ sym_entry: 'symbol'
5
+ str_entry: 'string'
6
+ int_entry: 'integer'
7
+ bool_entry: 'boolean'
8
+ css:
9
+ ~-diff: 'change-diff'
10
+ --diff: 'deletion-diff'
11
+ +-diff: 'addition-diff'
12
+ labels:
13
+ buttons:
14
+ ~-diff: 'Changes'
15
+ --diff: 'Deletions'
16
+ +-diff: 'Additions'
17
+ diff:
18
+ operations:
19
+ '~': "OLD: %s\rNEW: %s"
20
+ +: 'ADDED: %s'
21
+ -: 'DELETED: %s'
@@ -0,0 +1,26 @@
1
+ en-US:
2
+ simple_form:
3
+ "yes": 'Yes'
4
+ "no": 'No'
5
+ required:
6
+ text: 'required'
7
+ mark: '*'
8
+ # You can uncomment the line below if you need to overwrite the whole required html.
9
+ # When using html, text and mark won't be used.
10
+ # html: '<abbr title="required">*</abbr>'
11
+ error_notification:
12
+ default_message: "Please review the problems below:"
13
+ # Labels and hints examples
14
+ # labels:
15
+ # defaults:
16
+ # password: 'Password'
17
+ # user:
18
+ # new:
19
+ # email: 'E-mail to sign in.'
20
+ # edit:
21
+ # email: 'E-mail.'
22
+ # hints:
23
+ # defaults:
24
+ # username: 'User name to sign in.'
25
+ # password: 'No special characters, please.'
26
+
@@ -1,3 +1,3 @@
1
1
  module Flexite
2
- VERSION = '0.0.16'
2
+ VERSION = '0.0.17'
3
3
  end
@@ -773160,3 +773160,9 @@ Processing by Flexite::DiffsController#push as JS
773160
773160
  Rendered /home/rusakovich/code/flexite/app/views/flexite/shared/_show_flash.js.haml (0.5ms)
773161
773161
  Rendered /home/rusakovich/code/flexite/app/views/flexite/diffs/push.js.haml (0.8ms)
773162
773162
  Completed 200 OK in 75.8ms (Views: 2.4ms | ActiveRecord: 1.1ms)
773163
+ Connecting to database specified by database.yml
773164
+ Connecting to database specified by database.yml
773165
+ Connecting to database specified by database.yml
773166
+ Connecting to database specified by database.yml
773167
+ Connecting to database specified by database.yml
773168
+ Connecting to database specified by database.yml
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flexite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maksim Rusakovich
@@ -261,7 +261,9 @@ files:
261
261
  - app/views/layouts/flexite/application.html.haml
262
262
  - config/initializers/simple_form.rb
263
263
  - config/initializers/simple_form_bootstrap.rb
264
+ - config/locales/flexite.en-US.yml
264
265
  - config/locales/flexite.en.yml
266
+ - config/locales/simple_form.en-US.yml
265
267
  - config/locales/simple_form.en.yml
266
268
  - config/routes.rb
267
269
  - db/migrate/20180503102555_create_flexite_configs.rb