camaraderie 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +5 -1
- data/lib/camaraderie/user.rb +1 -1
- data/lib/camaraderie/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Camaraderie
|
|
2
2
|
|
|
3
|
+
[](https://rubygems.org/gems/camaraderie)
|
|
4
|
+
|
|
3
5
|
Camaraderie takes away the pain of managing membership stuff between users and organizations.
|
|
4
6
|
|
|
5
7
|
## Installation
|
|
@@ -65,4 +67,6 @@ user.admin_of?(organization)
|
|
|
65
67
|
|
|
66
68
|
## About Mirego
|
|
67
69
|
|
|
68
|
-
Mirego is a team of passionate people who believe that work is a place where you can innovate and have fun. We proudly
|
|
70
|
+
Mirego is a team of passionate people who believe that work is a place where you can innovate and have fun. We proudly build mobile applications for [iPhone](http://mirego.com/en/iphone-app-development/ "iPhone application development"), [iPad](http://mirego.com/en/ipad-app-development/ "iPad application development"), [Android](http://mirego.com/en/android-app-development/ "Android application development"), [Blackberry](http://mirego.com/en/blackberry-app-development/ "Blackberry application development"), [Windows Phone](http://mirego.com/en/windows-phone-app-development/ "Windows Phone application development") and [Windows 8](http://mirego.com/en/windows-8-app-development/ "Windows 8 application development") in beautiful Quebec City.
|
|
71
|
+
|
|
72
|
+
We also love [open-source software](http://open.mirego.com/) and we try to extract as much code as possible from our projects to give back to the community.
|
data/lib/camaraderie/user.rb
CHANGED
|
@@ -10,7 +10,7 @@ module Camaraderie
|
|
|
10
10
|
Camaraderie.membership_types.each do |type|
|
|
11
11
|
class_eval <<-RUBY, __FILE__, __LINE__ + 1
|
|
12
12
|
def #{type}_of?(organization)
|
|
13
|
-
!!memberships.
|
|
13
|
+
!!memberships.#{type.pluralize}.where(organization: organization).exists?
|
|
14
14
|
end
|
|
15
15
|
RUBY
|
|
16
16
|
end
|
data/lib/camaraderie/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: camaraderie
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-
|
|
12
|
+
date: 2013-08-10 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
@@ -114,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
114
114
|
version: '0'
|
|
115
115
|
segments:
|
|
116
116
|
- 0
|
|
117
|
-
hash: -
|
|
117
|
+
hash: -1376039277595789238
|
|
118
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
none: false
|
|
120
120
|
requirements:
|
|
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
123
123
|
version: '0'
|
|
124
124
|
segments:
|
|
125
125
|
- 0
|
|
126
|
-
hash: -
|
|
126
|
+
hash: -1376039277595789238
|
|
127
127
|
requirements: []
|
|
128
128
|
rubyforge_project:
|
|
129
129
|
rubygems_version: 1.8.23
|