chigago_employees_ahsan 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e39447c7e84dc42de5c19b82c55ca8b7b8530ab1c567fd4c174ee989591223b4
4
+ data.tar.gz: dd658f489dddc819bdbaf98167cd8a7e48bd4d18abf98d8fc240d07c945ea63d
5
+ SHA512:
6
+ metadata.gz: 2dd6c554a080ee07175d450358468796305779d992fe60b548c65c480277237493a82ea3e4b5afd595893422f53a666f49d2c0ddb1f555552bfa9e227d416828
7
+ data.tar.gz: e12a23d1d62eca0062545aec925b08236023cd7c2064cef3e7ffb9d9c134fa253e093d17b396e0bde3fb147bd8a89020188d5face2a03b4d04232cecf68c1505
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.idea/.rakeTasks ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Settings><!--This file was automatically generated by Ruby plugin.
3
+ You are allowed to:
4
+ 1. Remove rake task
5
+ 2. Add existing rake tasks
6
+ To add existing rake tasks automatically delete this file and reload the project.
7
+ --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build chigago_employees_ahsan-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install chigago_employees_ahsan-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install chigago_employees_ahsan-0.1.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.1.0 and build and push chigago_employees_ahsan-0.1.0.gem to TODO: Set to 'http://mygemserver.com'" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="ModuleRunConfigurationManager">
4
+ <shared />
5
+ </component>
6
+ <component name="NewModuleRootManager">
7
+ <content url="file://$MODULE_DIR$" />
8
+ <orderEntry type="inheritedJdk" />
9
+ <orderEntry type="sourceFolder" forTests="false" />
10
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.16.1, RVM: ruby-2.4.1) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, RVM: ruby-2.4.1) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.7.1, RVM: ruby-2.4.1) [gem]" level="application" />
13
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.7.0, RVM: ruby-2.4.1) [gem]" level="application" />
14
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.7.0, RVM: ruby-2.4.1) [gem]" level="application" />
15
+ </component>
16
+ </module>
data/.idea/misc.xml ADDED
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.4.1" project-jdk-type="RUBY_SDK" />
4
+ </project>
data/.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/chigago_employees_ahsan.iml" filepath="$PROJECT_DIR$/.idea/chigago_employees_ahsan.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,235 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="890db2ce-dc04-4455-8c33-0ee7aadc6f9e" name="Default" comment="">
5
+ <change beforePath="$PROJECT_DIR$/.idea/chigago_employees_ahsan.iml" afterPath="$PROJECT_DIR$/.idea/chigago_employees_ahsan.iml" />
6
+ <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
7
+ <change beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
8
+ <change beforePath="$PROJECT_DIR$/chigago_employees_ahsan.gemspec" afterPath="$PROJECT_DIR$/chigago_employees_ahsan.gemspec" />
9
+ <change beforePath="$PROJECT_DIR$/lib/chigago_employees_ahsan.rb" afterPath="$PROJECT_DIR$/lib/chigago_employees_ahsan.rb" />
10
+ </list>
11
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
12
+ <option name="TRACKING_ENABLED" value="true" />
13
+ <option name="SHOW_DIALOG" value="false" />
14
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
15
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
16
+ <option name="LAST_RESOLUTION" value="IGNORE" />
17
+ </component>
18
+ <component name="FileEditorManager">
19
+ <leaf>
20
+ <file leaf-file-name="chigago_employees_ahsan.gemspec" pinned="false" current-in-tab="false">
21
+ <entry file="file://$PROJECT_DIR$/chigago_employees_ahsan.gemspec">
22
+ <provider selected="true" editor-type-id="text-editor">
23
+ <state relative-caret-position="525">
24
+ <caret line="35" column="32" lean-forward="false" selection-start-line="35" selection-start-column="32" selection-end-line="35" selection-end-column="32" />
25
+ <folding />
26
+ </state>
27
+ </provider>
28
+ </entry>
29
+ </file>
30
+ <file leaf-file-name="chigago_employees_ahsan.rb" pinned="false" current-in-tab="true">
31
+ <entry file="file://$PROJECT_DIR$/lib/chigago_employees_ahsan.rb">
32
+ <provider selected="true" editor-type-id="text-editor">
33
+ <state relative-caret-position="330">
34
+ <caret line="22" column="23" lean-forward="false" selection-start-line="22" selection-start-column="13" selection-end-line="22" selection-end-column="23" />
35
+ <folding />
36
+ </state>
37
+ </provider>
38
+ </entry>
39
+ </file>
40
+ <file leaf-file-name="Rakefile" pinned="false" current-in-tab="false">
41
+ <entry file="file://$PROJECT_DIR$/Rakefile">
42
+ <provider selected="true" editor-type-id="text-editor">
43
+ <state relative-caret-position="0">
44
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
45
+ <folding />
46
+ </state>
47
+ </provider>
48
+ </entry>
49
+ </file>
50
+ <file leaf-file-name="README.md" pinned="false" current-in-tab="false">
51
+ <entry file="file://$PROJECT_DIR$/README.md">
52
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
53
+ <state split_layout="SPLIT">
54
+ <first_editor relative-caret-position="360">
55
+ <caret line="24" column="32" lean-forward="false" selection-start-line="24" selection-start-column="11" selection-end-line="24" selection-end-column="32" />
56
+ <folding />
57
+ </first_editor>
58
+ <second_editor />
59
+ </state>
60
+ </provider>
61
+ </entry>
62
+ </file>
63
+ </leaf>
64
+ </component>
65
+ <component name="Git.Settings">
66
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
67
+ </component>
68
+ <component name="IdeDocumentHistory">
69
+ <option name="CHANGED_PATHS">
70
+ <list>
71
+ <option value="$PROJECT_DIR$/README.md" />
72
+ <option value="$PROJECT_DIR$/chigago_employees_ahsan.gemspec" />
73
+ <option value="$PROJECT_DIR$/lib/chigago_employees_ahsan.rb" />
74
+ </list>
75
+ </option>
76
+ </component>
77
+ <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
78
+ <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
79
+ <component name="JsGulpfileManager">
80
+ <detection-done>true</detection-done>
81
+ <sorting>DEFINITION_ORDER</sorting>
82
+ </component>
83
+ <component name="ProjectFrameBounds" fullScreen="true">
84
+ <option name="width" value="1280" />
85
+ <option name="height" value="800" />
86
+ </component>
87
+ <component name="ProjectView">
88
+ <navigator currentView="ProjectPane" proportions="" version="1">
89
+ <flattenPackages />
90
+ <showMembers />
91
+ <showModules />
92
+ <showLibraryContents />
93
+ <hideEmptyPackages />
94
+ <abbreviatePackageNames />
95
+ <autoscrollToSource />
96
+ <autoscrollFromSource />
97
+ <sortByType />
98
+ <manualOrder />
99
+ <foldersAlwaysOnTop value="true" />
100
+ </navigator>
101
+ <panes>
102
+ <pane id="ProjectPane">
103
+ <subPane>
104
+ <expand>
105
+ <path>
106
+ <item name="chigago_employees_ahsan" type="b2602c69:ProjectViewProjectNode" />
107
+ <item name="chigago_employees_ahsan" type="462c0819:PsiDirectoryNode" />
108
+ </path>
109
+ <path>
110
+ <item name="chigago_employees_ahsan" type="b2602c69:ProjectViewProjectNode" />
111
+ <item name="chigago_employees_ahsan" type="462c0819:PsiDirectoryNode" />
112
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
113
+ </path>
114
+ <path>
115
+ <item name="chigago_employees_ahsan" type="b2602c69:ProjectViewProjectNode" />
116
+ <item name="chigago_employees_ahsan" type="462c0819:PsiDirectoryNode" />
117
+ <item name="spec" type="462c0819:PsiDirectoryNode" />
118
+ </path>
119
+ </expand>
120
+ <select />
121
+ </subPane>
122
+ </pane>
123
+ <pane id="Scope" />
124
+ <pane id="Scratches" />
125
+ </panes>
126
+ </component>
127
+ <component name="PropertiesComponent">
128
+ <property name="WebServerToolWindowFactoryState" value="false" />
129
+ <property name="last_opened_file_path" value="$PROJECT_DIR$" />
130
+ </component>
131
+ <component name="RunDashboard">
132
+ <option name="ruleStates">
133
+ <list>
134
+ <RuleState>
135
+ <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
136
+ </RuleState>
137
+ <RuleState>
138
+ <option name="name" value="StatusDashboardGroupingRule" />
139
+ </RuleState>
140
+ </list>
141
+ </option>
142
+ </component>
143
+ <component name="ShelveChangesManager" show_recycled="false">
144
+ <option name="remove_strategy" value="false" />
145
+ </component>
146
+ <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
147
+ <component name="SvnConfiguration">
148
+ <configuration />
149
+ </component>
150
+ <component name="TaskManager">
151
+ <task active="true" id="Default" summary="Default task">
152
+ <changelist id="890db2ce-dc04-4455-8c33-0ee7aadc6f9e" name="Default" comment="" />
153
+ <created>1526414297649</created>
154
+ <option name="number" value="Default" />
155
+ <option name="presentableId" value="Default" />
156
+ <updated>1526414297649</updated>
157
+ <workItem from="1526414298785" duration="2842000" />
158
+ </task>
159
+ <servers />
160
+ </component>
161
+ <component name="TimeTrackingManager">
162
+ <option name="totallyTimeSpent" value="2842000" />
163
+ </component>
164
+ <component name="ToolWindowManager">
165
+ <frame x="0" y="0" width="1280" height="800" extended-state="0" />
166
+ <editor active="true" />
167
+ <layout>
168
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
169
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
170
+ <window_info id="Docker" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
171
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
172
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
173
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
174
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
175
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
176
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
177
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
178
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
179
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
180
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
181
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
182
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
183
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
184
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
185
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
186
+ </layout>
187
+ </component>
188
+ <component name="TypeScriptGeneratedFilesManager">
189
+ <option name="version" value="1" />
190
+ </component>
191
+ <component name="VcsContentAnnotationSettings">
192
+ <option name="myLimit" value="2678400000" />
193
+ </component>
194
+ <component name="XDebuggerManager">
195
+ <breakpoint-manager />
196
+ <watches-manager />
197
+ </component>
198
+ <component name="editorHistoryManager">
199
+ <entry file="file://$PROJECT_DIR$/chigago_employees_ahsan.gemspec">
200
+ <provider selected="true" editor-type-id="text-editor">
201
+ <state relative-caret-position="525">
202
+ <caret line="35" column="32" lean-forward="false" selection-start-line="35" selection-start-column="32" selection-end-line="35" selection-end-column="32" />
203
+ <folding />
204
+ </state>
205
+ </provider>
206
+ </entry>
207
+ <entry file="file://$PROJECT_DIR$/Rakefile">
208
+ <provider selected="true" editor-type-id="text-editor">
209
+ <state relative-caret-position="0">
210
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
211
+ <folding />
212
+ </state>
213
+ </provider>
214
+ </entry>
215
+ <entry file="file://$PROJECT_DIR$/README.md">
216
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
217
+ <state split_layout="SPLIT">
218
+ <first_editor relative-caret-position="360">
219
+ <caret line="24" column="32" lean-forward="false" selection-start-line="24" selection-start-column="11" selection-end-line="24" selection-end-column="32" />
220
+ <folding />
221
+ </first_editor>
222
+ <second_editor />
223
+ </state>
224
+ </provider>
225
+ </entry>
226
+ <entry file="file://$PROJECT_DIR$/lib/chigago_employees_ahsan.rb">
227
+ <provider selected="true" editor-type-id="text-editor">
228
+ <state relative-caret-position="330">
229
+ <caret line="22" column="23" lean-forward="false" selection-start-line="22" selection-start-column="13" selection-end-line="22" selection-end-column="23" />
230
+ <folding />
231
+ </state>
232
+ </provider>
233
+ </entry>
234
+ </component>
235
+ </project>
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.5.1
5
+ before_install: gem install bundler -v 1.16.1
@@ -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 ahsan.ror@gmail.com. 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/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in chigago_employees_ahsan.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,45 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ chigago_employees_ahsan (0.1.0)
5
+ unirest (= 1.1.2)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ addressable (2.3.8)
11
+ diff-lcs (1.3)
12
+ json (1.8.6)
13
+ mime-types (1.25.1)
14
+ rake (10.5.0)
15
+ rest-client (1.6.9)
16
+ mime-types (~> 1.16)
17
+ rspec (3.7.0)
18
+ rspec-core (~> 3.7.0)
19
+ rspec-expectations (~> 3.7.0)
20
+ rspec-mocks (~> 3.7.0)
21
+ rspec-core (3.7.1)
22
+ rspec-support (~> 3.7.0)
23
+ rspec-expectations (3.7.0)
24
+ diff-lcs (>= 1.2.0, < 2.0)
25
+ rspec-support (~> 3.7.0)
26
+ rspec-mocks (3.7.0)
27
+ diff-lcs (>= 1.2.0, < 2.0)
28
+ rspec-support (~> 3.7.0)
29
+ rspec-support (3.7.1)
30
+ unirest (1.1.2)
31
+ addressable (~> 2.3.5)
32
+ json (~> 1.8.1)
33
+ rest-client (~> 1.6.7)
34
+
35
+ PLATFORMS
36
+ ruby
37
+
38
+ DEPENDENCIES
39
+ bundler (~> 1.16)
40
+ chigago_employees_ahsan!
41
+ rake (~> 10.0)
42
+ rspec (~> 3.0)
43
+
44
+ BUNDLED WITH
45
+ 1.16.1
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Md Ahsanul Hoque
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # ChigagoEmployeesAhsan
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/chigago_employees_ahsan`. 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
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'chigago_employees_ahsan'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install chigago_employees_ahsan
22
+
23
+ ## Usage
24
+
25
+ employee = ChigagoEmployeesAhsan::Employee.all
26
+
27
+ ## Development
28
+
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.
30
+
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
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/chigago_employees_ahsan. 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.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the ChigagoEmployeesAhsan project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/chigago_employees_ahsan/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "chigago_employees_ahsan"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,37 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "chigago_employees_ahsan/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "chigago_employees_ahsan"
8
+ spec.version = ChigagoEmployeesAhsan::VERSION
9
+ spec.authors = ["Md Ahsanul Hoque"]
10
+ spec.email = ["ahsan.ror@gmail.com"]
11
+
12
+ spec.summary = %q{A ruby gem wrapper for chicago employee API}
13
+ spec.description = %q{Return ruby object based on chicago employee json data}
14
+ spec.homepage = "https://github.com/Ahsan-info/chigago_employees"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ # if spec.respond_to?(:metadata)
20
+ # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
21
+ # else
22
+ # raise "RubyGems 2.0 or newer is required to protect against " \
23
+ # "public gem pushes."
24
+ # end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_development_dependency "bundler", "~> 1.16"
34
+ spec.add_development_dependency "rake", "~> 10.0"
35
+ spec.add_development_dependency "rspec", "~> 3.0"
36
+ spec.add_dependency "unirest", "1.1.2"
37
+ end
@@ -0,0 +1,36 @@
1
+ require "chigago_employees_ahsan/version"
2
+ require "unirest"
3
+
4
+ module ChigagoEmployeesAhsan
5
+ class Employee
6
+ attr_reader :title, :department, :name, :salary, :first_name, :last_name
7
+ def initialize(input_options)
8
+ @title = input_options['job_titles']
9
+ @department = input_options['department']
10
+ @name = input_options['name']
11
+ @salary = input_options['annual_salary'].to_i
12
+ @first_name = @name.split(', ')[1]
13
+ @last_name = @name.split(', ')[0]
14
+
15
+ end
16
+
17
+ def self.all
18
+ Unirest.get("https://data.cityofchicago.org/resource/tt4n-kn4t.json")
19
+ .body
20
+ .map{|employee| Employee.new(employee)}
21
+ end
22
+
23
+ def self.department(param_option)
24
+ Unirest.get("https://data.cityofchicago.org/resource/tt4n-kn4t.json?department=#{param_option}")
25
+ .body
26
+ .map{|employee| Employee.new(employee)}
27
+ end
28
+
29
+ def self.highest_paid_three
30
+ employee = Unirest.get("https://data.cityofchicago.org/resource/tt4n-kn4t.json")
31
+ .body
32
+ .map{|employee| Employee.new(employee)}
33
+ employee.max_by(3){|employee| employee.salary}
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,3 @@
1
+ module ChigagoEmployeesAhsan
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,120 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: chigago_employees_ahsan
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Md Ahsanul Hoque
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-05-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.16'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: unirest
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 1.1.2
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 1.1.2
69
+ description: Return ruby object based on chicago employee json data
70
+ email:
71
+ - ahsan.ror@gmail.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".idea/.rakeTasks"
78
+ - ".idea/chigago_employees_ahsan.iml"
79
+ - ".idea/misc.xml"
80
+ - ".idea/modules.xml"
81
+ - ".idea/vcs.xml"
82
+ - ".idea/workspace.xml"
83
+ - ".rspec"
84
+ - ".travis.yml"
85
+ - CODE_OF_CONDUCT.md
86
+ - Gemfile
87
+ - Gemfile.lock
88
+ - LICENSE.txt
89
+ - README.md
90
+ - Rakefile
91
+ - bin/console
92
+ - bin/setup
93
+ - chigago_employees_ahsan.gemspec
94
+ - lib/chigago_employees_ahsan.rb
95
+ - lib/chigago_employees_ahsan/version.rb
96
+ homepage: https://github.com/Ahsan-info/chigago_employees
97
+ licenses:
98
+ - MIT
99
+ metadata: {}
100
+ post_install_message:
101
+ rdoc_options: []
102
+ require_paths:
103
+ - lib
104
+ required_ruby_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ required_rubygems_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ requirements: []
115
+ rubyforge_project:
116
+ rubygems_version: 2.7.6
117
+ signing_key:
118
+ specification_version: 4
119
+ summary: A ruby gem wrapper for chicago employee API
120
+ test_files: []