tableless 0.1.1 → 0.1.2

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: ac9d1cacf0d6b1a5c66d8463e959cff01bed9714
4
- data.tar.gz: 3d8103d8994a3ad0c99f3f444ce165307cdbac98
2
+ SHA256:
3
+ metadata.gz: 3350d55841d6018ae8f8a3b56956bde1059c3a7fbcd6b79c7c8efb3e7b1837c9
4
+ data.tar.gz: d8ff2abfd9cd293db6c523cb8d7881558ec3fecfdbc0808b4e9ae31f2c9faabb
5
5
  SHA512:
6
- metadata.gz: fbef2c16edfcae0f3ef0a9b4e5e026017f9c58b956f743eaa1134981e9c7de530a5e0eec633c204dd82bbcd974ef8d773577f759c11f03558d7c78ad4d24bd1e
7
- data.tar.gz: 617c8eef9bb61076f033349ca726138692a205cb14f547f15062487d8ecde6cf17b10854573ef1c3c76a58366a83a4129657804dd519aec26cf6682d8dc77a6b
6
+ metadata.gz: b9a95511344789b6f97911e3b753e77b0d6481803c6c1616c86f0e2b4e7fd0e84a18b14779703957c4464bdb25ab6b6f75e6806b13a12e452e57330ec19c864a
7
+ data.tar.gz: 16d74178a9b596a7fd337684097cb4ca52016e24780b6a1ceaed86b3b192c5b2a9d434c4d915e1cb81195ebe380ea9b5c36e68c10bebb3f7a9440bf91c6924e0
data/README.md CHANGED
@@ -64,12 +64,8 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
64
64
 
65
65
  ## Contributing
66
66
 
67
- Bug reports and pull requests are welcome on GitHub at https://github.com/hardpixel/tableless. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
67
+ Bug reports and pull requests are welcome on GitHub at https://github.com/hardpixel/tableless.
68
68
 
69
69
  ## License
70
70
 
71
71
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
72
-
73
- ## Code of Conduct
74
-
75
- Everyone interacting in the Tableless project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/hardpixel/tableless/blob/master/CODE_OF_CONDUCT.md).
@@ -8,12 +8,12 @@ module Tableless
8
8
 
9
9
  private
10
10
 
11
- def _create_record
12
- _run_create_callbacks { super }
13
- end
11
+ def _create_record
12
+ _run_create_callbacks { super }
13
+ end
14
14
 
15
- def _update_record(*)
16
- _run_update_callbacks { super }
17
- end
15
+ def _update_record(*)
16
+ _run_update_callbacks { super }
17
+ end
18
18
  end
19
19
  end
@@ -7,11 +7,11 @@ module Tableless
7
7
 
8
8
  module ClassMethods
9
9
  def connection
10
- @connection ||= Tableless::DummyAdapter.new nil
10
+ @connection ||= Tableless::DummyAdapter.new(nil)
11
11
  end
12
12
 
13
13
  def attribute_names
14
- @attributes ||= attribute_types.keys
14
+ @attribute_names ||= attribute_types.keys
15
15
  end
16
16
  end
17
17
  end
@@ -13,7 +13,7 @@ module Tableless
13
13
  end
14
14
 
15
15
  def reload(*)
16
- @attributes = self.class.new.instance_variable_get("@attributes")
16
+ @attributes = self.class.new.instance_variable_get('@attributes')
17
17
  @new_record = false
18
18
  self
19
19
  end
@@ -31,14 +31,14 @@ module Tableless
31
31
 
32
32
  private
33
33
 
34
- def _create_record(*)
35
- @new_record = false
36
- true
37
- end
34
+ def _create_record(*)
35
+ @new_record = false
36
+ true
37
+ end
38
38
 
39
- def _update_record(*)
40
- @_trigger_update_callback = true
41
- true
42
- end
39
+ def _update_record(*)
40
+ @_trigger_update_callback = true
41
+ true
42
+ end
43
43
  end
44
44
  end
@@ -1,3 +1,3 @@
1
1
  module Tableless
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tableless
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonian Guveli
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-18 00:00:00.000000000 Z
11
+ date: 2019-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -74,7 +74,6 @@ executables: []
74
74
  extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
- - CODE_OF_CONDUCT.md
78
77
  - Gemfile
79
78
  - LICENSE.txt
80
79
  - README.md
@@ -107,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
106
  version: '0'
108
107
  requirements: []
109
108
  rubyforge_project:
110
- rubygems_version: 2.6.13
109
+ rubygems_version: 2.7.7
111
110
  signing_key:
112
111
  specification_version: 4
113
112
  summary: ActiveRecord models without database tables
@@ -1,74 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at jonian@hardpixel.eu. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/