activerecord_lite 0.4.0 → 0.5.0

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
  SHA256:
3
- metadata.gz: c9a691ec2f0e1ca18ac1e39077fba4f334addd83fe879bd2e19ac70963da0106
4
- data.tar.gz: 90eaad5ee14329215eb6723ca23e53b221e00438bd44138d3711f41f0db5e2bc
3
+ metadata.gz: 2d90f1a97874882f50e1bf27802ecb216b9c9ea7bb50815da431aac3e1ee67df
4
+ data.tar.gz: d9595985a80da6522f7fdca33be42886bfd58bb664a4dd247b06b82e017201b4
5
5
  SHA512:
6
- metadata.gz: 119af3f4cbb18cd11fe27af4263c691ffd2e9fba78f15e8669adb79a36030217387ee1d8ae363a45f31a1e3a952fb8f1ef2f6071b61b5ba5cca073c7debbc93f
7
- data.tar.gz: 652fc286d57c78ccc84b0d4ca42e29a4104cc9c424726efa68c2ac46c2358b56bfa75bd276dbd92fc77d3fee4e319aa3afa6e8eebb8c18b915eb4ff6452c8420
6
+ metadata.gz: 6244eaac273849f1a978733d6f802dc09e9379f60fe384517d4c254fe6be3dff3a254fb4708b701fcca4c375f8ccc53f2332426d9484c43a50b620787eaae56d
7
+ data.tar.gz: d5b5b1bcad068bc48078fbe19589bf0472000beb9f0c6f7b0d4aa67271609e896b3b58c8101e95447c4102321ba03b8a2ee25d3508bcbefd6c680691289148bd
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
  end
17
17
  spec.require_paths = ["lib"]
18
18
 
19
- spec.add_development_dependency "bundler", "~> 1.14"
19
+ spec.add_development_dependency "bundler"
20
20
  spec.add_development_dependency "rspec", "~> 3.0"
21
21
  spec.add_development_dependency "activerecord", ">= 4.0.0"
22
22
  spec.add_development_dependency "sqlite3", "~> 1.3"
@@ -27,7 +27,7 @@ module ActiveRecordLite
27
27
 
28
28
  def prepare_hash(select_sql)
29
29
  columns = select_sql.keys
30
- select_columns = select_sql.map { |key, value| "#{value} #{key}" }.join(",")
30
+ select_columns = select_sql.map { |key, value| "#{value} AS #{key}" }.join(",")
31
31
  [select_columns, columns]
32
32
  end
33
33
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordLite
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord_lite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adriano Bacha
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-03 00:00:00.000000000 Z
11
+ date: 2024-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.14'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.14'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  requirements: []
103
- rubygems_version: 3.4.10
103
+ rubygems_version: 3.2.33
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: lightweight activerecord queries