activerecord_lite 0.1.0 → 0.4.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
- SHA1:
3
- metadata.gz: 35d97fd18970f39220a27ef8276a454814aa653e
4
- data.tar.gz: c9e5f1d7808c89117fe6664eb854c72fde57f6dc
2
+ SHA256:
3
+ metadata.gz: c9a691ec2f0e1ca18ac1e39077fba4f334addd83fe879bd2e19ac70963da0106
4
+ data.tar.gz: 90eaad5ee14329215eb6723ca23e53b221e00438bd44138d3711f41f0db5e2bc
5
5
  SHA512:
6
- metadata.gz: 673e2d14b2fe0bf082e3c2e7b01e2e1c69e7a2e8a98e8d0c4c07bf24a379516f930ad1f04385f05b568a633e14badc876399a465cf8cad6039742d94659a306e
7
- data.tar.gz: 0e3da48fab306bbdcb2f8e91e766d610cf2d0bd51b1557ec4edf9b95a4a54a50d4a84a3e039750e825d52605ce135ef2e042cb45bcc17a8bdf240f0f67db047a
6
+ metadata.gz: 119af3f4cbb18cd11fe27af4263c691ffd2e9fba78f15e8669adb79a36030217387ee1d8ae363a45f31a1e3a952fb8f1ef2f6071b61b5ba5cca073c7debbc93f
7
+ data.tar.gz: 652fc286d57c78ccc84b0d4ca42e29a4104cc9c424726efa68c2ac46c2358b56bfa75bd276dbd92fc77d3fee4e319aa3afa6e8eebb8c18b915eb4ff6452c8420
data/README.md CHANGED
@@ -1,9 +1,3 @@
1
- # ActiverecordLite
2
-
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/activerecord_lite`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
1
  ## Installation
8
2
 
9
3
  Add this line to your application's Gemfile:
@@ -22,15 +16,13 @@ Or install it yourself as:
22
16
 
23
17
  ## Usage
24
18
 
25
- TODO: Write usage instructions here
26
-
27
- ## Development
19
+ (ActiveRecord Query).fetch_lite(:attribute1, :attribute2, ...)
28
20
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
21
+ (ActiveRecord Query).fetch_lite(attribute1: :name, attribute2: value)
30
22
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
23
 
33
- ## Contributing
24
+ Ex:
34
25
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/abacha/activerecord_lite.
26
+ Account.where(status: 1).fetch_lite(:name, :code)
36
27
 
28
+ Account.where(status: 1).fetch_lite(name: :account_name, code: :account_code)
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordLite
2
- VERSION = "0.1.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord_lite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.4.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: 2017-05-15 00:00:00.000000000 Z
11
+ date: 2023-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -100,8 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  requirements: []
103
- rubyforge_project:
104
- rubygems_version: 2.4.8
103
+ rubygems_version: 3.4.10
105
104
  signing_key:
106
105
  specification_version: 4
107
106
  summary: lightweight activerecord queries