card 1.16.13 → 1.16.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/db/migrate_core_cards/20150501010515_responsive_sidebar.rb +11 -0
  4. data/db/schema.rb +1 -1
  5. data/lib/card/auth.rb +3 -2
  6. data/lib/card/env.rb +1 -1
  7. data/lib/card/loader.rb +79 -40
  8. data/lib/card/query.rb +5 -5
  9. data/lib/card/query/sql_statement.rb +10 -4
  10. data/lib/card/query/value.rb +5 -8
  11. data/lib/card/set.rb +0 -1
  12. data/lib/cardio.rb +18 -22
  13. data/mod/01_core/chunk/link.rb +37 -34
  14. data/mod/01_core/chunk/query_reference.rb +1 -1
  15. data/mod/01_core/set/all/fetch.rb +66 -58
  16. data/mod/01_core/set/all/permissions.rb +84 -83
  17. data/mod/01_core/set/all/templating.rb +6 -5
  18. data/mod/01_core/set/all/type.rb +16 -14
  19. data/mod/02_basic_types/set/all/base.rb +3 -3
  20. data/mod/02_basic_types/set/type/pointer.rb +4 -4
  21. data/mod/02_basic_types/spec/set/all/base_spec.rb +16 -1
  22. data/mod/03_machines/lib/javascript/wagn_mod.js.coffee +65 -0
  23. data/mod/05_email/set/all/follow.rb +6 -10
  24. data/mod/05_email/set/type/email_template.rb +1 -1
  25. data/mod/05_standard/lib/file_uploader.rb +39 -41
  26. data/mod/05_standard/set/all/account.rb +18 -20
  27. data/mod/05_standard/set/all/rich_html/toolbar.rb +1 -1
  28. data/mod/05_standard/set/right/account.rb +2 -2
  29. data/mod/05_standard/set/right/email.rb +14 -13
  30. data/mod/05_standard/set/right/password.rb +20 -12
  31. data/mod/05_standard/set/right/status.rb +2 -2
  32. data/mod/05_standard/set/self/head.rb +66 -53
  33. data/mod/05_standard/set/type/search_type.rb +3 -2
  34. data/mod/05_standard/set/type/set.rb +3 -3
  35. data/mod/06_bootstrap/lib/stylesheets/bootstrap_cards.scss +50 -0
  36. data/spec/lib/card/query_spec.rb +7 -0
  37. data/spec/spec_helper.rb +1 -1
  38. metadata +3 -2
@@ -8,6 +8,13 @@ describe Card::Query do
8
8
  Card::Query.run @query.reverse_merge return: :name, sort: :name
9
9
  end
10
10
 
11
+ it 'should not alter original statement' do
12
+ @query = { right_plus: { name: %w( in tag source ) } }
13
+ query_clone = @query.deep_clone
14
+ subject # runs query
15
+ expect(query_clone).to eq(@query)
16
+ end
17
+
11
18
  describe 'append' do
12
19
  it 'should find real cards' do
13
20
  @query = {
@@ -82,7 +82,7 @@ end
82
82
  class Card
83
83
  def self.create_or_update! name, args={}
84
84
  Card::Auth.as_bot do
85
- if c = Card.fetch(name)
85
+ if (c = Card.fetch(name))
86
86
  c.update_attributes!(args)
87
87
  else
88
88
  Card.create! args.merge({name: name})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.13
4
+ version: 1.16.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-11-23 00:00:00.000000000 Z
14
+ date: 2015-12-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: smartname
@@ -294,6 +294,7 @@ files:
294
294
  - db/migrate_core_cards/20150326205655_bootswatch_themes.rb
295
295
  - db/migrate_core_cards/20150331135745_new_card_menu.rb
296
296
  - db/migrate_core_cards/20150429090551_search_card_context.rb
297
+ - db/migrate_core_cards/20150501010515_responsive_sidebar.rb
297
298
  - db/migrate_core_cards/20150508212032_menu_compatibility.rb
298
299
  - db/migrate_core_cards/20150510031118_fix_skin_images.rb
299
300
  - db/migrate_core_cards/20150528084659_add_session_cardtype.rb