smart_pagination 0.2.2 → 0.2.3

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
  SHA1:
3
- metadata.gz: 9e34390880f7d6e8e725b07d68be352337b694da
4
- data.tar.gz: 81b5027beb3fca871376b1182dab770e7c7ff136
3
+ metadata.gz: c451a174fdb1dbbe0201eebeb792d0d9d056d980
4
+ data.tar.gz: 9753af4e65b20f602bc2d37f3b916d7147847e0d
5
5
  SHA512:
6
- metadata.gz: 232b5893d40fd58fdf5cee76c173993b1a08d5a1617901adf4993d1b0ac76763db810bec0f4f7207f4945d4e6459f31e5bd8cd2dfda81baa873938d8d780abfb
7
- data.tar.gz: 3b502147daf912f88be2bf2742710a771c40a31395d6e303e6c03356a7c3ccc8223bc9d27f01f1982c00dfb5de75af9ce05b9b31d60ebce4c71c491b7f3abd03
6
+ metadata.gz: '08dc7c842bb87a2e5649a6ab9e1f8d82c48ba80ed6b2a3fd7f9b8bf604fbd535e38cfab696d3030d9b7a820b2cfbc36c25bd13bfce8b85a44cee8b10afcc1173'
7
+ data.tar.gz: b557c1e8e8a68c119c42b163a4713a90458335e678403e475a40856cfcccc98fa4e92a7e89e94a360410a8688c11bd1a59ecf3760438bb961bcc53331f5d53e1
@@ -0,0 +1,74 @@
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 info@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/
data/README.md CHANGED
@@ -46,19 +46,19 @@ Then you can use the paginate scope to paginate results:
46
46
 
47
47
  And finally you can use the `smart_pagination_for` or `pagination_for` helper in your views to render the pagination links:
48
48
 
49
- ```ruby
49
+ ```erb
50
50
  <%= smart_pagination_for(@users) %>
51
51
  ```
52
52
 
53
53
  If you want to render only previous and next links, you can use the `smart_pager_for` or `pager_for` helper in your views:
54
54
 
55
- ```ruby
55
+ ```erb
56
56
  <%= smart_pager_for(@users) %>
57
57
  ```
58
58
 
59
59
  If you want to render the pagination information text (Displaying x of y Items), you can use the `smart_pagination_info_for` or `pagination_info_for` helper in your views:
60
60
 
61
- ```ruby
61
+ ```erb
62
62
  <%= smart_pagination_info_for(@users) %>
63
63
  ```
64
64
 
@@ -91,9 +91,12 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
91
91
 
92
92
  ## Contributing
93
93
 
94
- Bug reports and pull requests are welcome on GitHub at https://github.com/hardpixel/smart-pagination.
95
-
94
+ Bug reports and pull requests are welcome on GitHub at https://github.com/hardpixel/smart-pagination. 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.
96
95
 
97
96
  ## License
98
97
 
99
98
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
99
+
100
+ ## Code of Conduct
101
+
102
+ Everyone interacting in the ActiveContent project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/hardpixel/smart-pagination/blob/master/CODE_OF_CONDUCT.md).
@@ -1,3 +1,3 @@
1
1
  module SmartPagination
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
@@ -1,16 +1,16 @@
1
1
  require 'smart_paginate'
2
+ require 'active_support'
2
3
  require 'smart_pagination/version'
3
- require 'smart_pagination/helper'
4
- require 'smart_pagination/renderer'
5
4
 
6
5
  module SmartPagination
7
- class << self
8
- def included(model_class)
9
- model_class.send :include, SmartPaginate
10
- end
11
- end
6
+ extend ActiveSupport::Autoload
7
+
8
+ # Autoload modules
9
+ autoload :Renderer
10
+ autoload :Helper
12
11
  end
13
12
 
13
+ # Include action view helpers
14
14
  if defined? ActionView::Base
15
15
  ActionView::Base.send :include, SmartPagination::Helper
16
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_pagination
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
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-06-28 00:00:00.000000000 Z
11
+ date: 2017-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: smart_paginate
@@ -94,6 +94,7 @@ executables: []
94
94
  extensions: []
95
95
  extra_rdoc_files: []
96
96
  files:
97
+ - CODE_OF_CONDUCT.md
97
98
  - Gemfile
98
99
  - LICENSE.txt
99
100
  - README.md
@@ -122,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
123
  version: '0'
123
124
  requirements: []
124
125
  rubyforge_project:
125
- rubygems_version: 2.6.11
126
+ rubygems_version: 2.6.13
126
127
  signing_key:
127
128
  specification_version: 4
128
129
  summary: View helpers for SmartPaginate